Not exactly my problem, so let me rephrase.
I need to populate a grid dynamically - all done in code. I will receive a dataset with information, but this information is not all relevant to the grid, so I can not bind directly to the dataset.
So, I have to extract some of the data from the dataset, and add it to specific columns+Rows in the grid.
I have to set values to specific cells. I can't find a way to do this, not sure if I am missing the point here.
So, this is what I have done up to now.
GridViewDataColumn col1 = new GridViewDataColumn();
col1.UniqueName = "Column1";
GridViewDataColumn col2 = new GridViewDataColumn();
col2.UniqueName = "Column2";
Great! So now I have 2 columns in my grid. I now add a row to the grid:
So now I have 2 columns and 1 row in my grid.
I would now like to make the value on Column1, Row 1 equal to 5. I do not know how to do this, as I do not find a method to access the cell in the row.
In other words, there is no grid.Items.value or something to get to the actual cell in the row.
Please explain to me how to edit the value in the specific cell.
Hope this is more clear.