I have a source grid, I want to hide three columns one of them carry the primary key. When I click on any row, I need to populate a set of text box fields from the cell values of the selected rows including the hidden columns.
How can I implement the above scenario in a C# application.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a source grid, I want to hide three columns one of them carry the primary key. When I click on any row, I need to populate a set of text box fields from the cell values of the selected rows including the hidden columns.
How can I implement the above scenario in a C# application.
Thanks in advance.
You can hide a column using the Visible property like this:
grid.Columns[x].Visible = false;
To read a cell you can use this code:
grid[r,c].Value
You can use the Grid.Selection.FocusRowEntered event to see when the user activate the row.
Davide
P.S. This forum is obsolete. From now use the forum on the devage.com website