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.
精彩评论