开发者

assign value to datagridview cell at run time in c#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜