[2005] Cell's Value of an Unbound DataGridView
I had been searching the net as well as MSDN about this, but I don't know if it's just me that can't figure it out.
Quite simple one may think, on my DataGridView are Column1 and Column2 columns.On a certain event(say Button_Click) of a button, a new row would be added and Column1 and Column2 would have certain values.By the way, both columns as a TextBoxColumn.
On a ListView point of view, this could be accomplish by merely ListView.Items.Add
Hope someone could lead me to the right solution.Thanks.
Re: [2005] Cell's Value of an Unbound DataGridView
You just add to the grid's Rows collection. The Add method is overloaded so you can either specify the values for the cells or else get the index of the row and then set the values.