H
Harry Keck
OK, I can now use DataGridTextBoxColumn objects to
determine what columns get displayed on my datagrid when I
bind to a datatable. At some point, though, I need to
access an ID field that was in the dataset, but that was
not displayed.
If I use datagrid.Item, I can not seem to access any
values that were not displayed. I can not merely use the
index of the row in the datagrid to get the corresponding
row out of the datatable, because the order of the rows
may change in the grid by the user clicking the column
header.
Does anyone have a good technique for hiding an ID column
from being displayed in the DataGrid, but then having
access to that hidden column at runtime? Thank you.
determine what columns get displayed on my datagrid when I
bind to a datatable. At some point, though, I need to
access an ID field that was in the dataset, but that was
not displayed.
If I use datagrid.Item, I can not seem to access any
values that were not displayed. I can not merely use the
index of the row in the datagrid to get the corresponding
row out of the datatable, because the order of the rows
may change in the grid by the user clicking the column
header.
Does anyone have a good technique for hiding an ID column
from being displayed in the DataGrid, but then having
access to that hidden column at runtime? Thank you.