开发者

assign value to datagridview cell at run time in c#

开发者 https://www.devze.com 2023-02-05 04:16 出处:网络
I have datagrid view in which I have 3 columns.The are name, price, and quantity.I have populated the first 2 columns from a dataset and now I want to assign a value to quantity the c开发者_如何学Gool

I have datagrid view in which I have 3 columns. The are name, price, and quantity. I have populated the first 2 columns from a dataset and now I want to assign a value to quantity the c开发者_如何学Goolumn based on the data in the existing columns. How can I do that?


You can use Expression based columns.

Here is a good article: Express Yourself with Expression-based Columns

You can also take a look at Datatable.Compute method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号