S
Sin Jeong-hun
My application has a DataGridView, and lets users input new rows in
it. It uses the VS.NET generated class mechanisms, so there are three
components like XXXBindingSource, XXXTableAdapter and XXXDataSet.
Everything is fine except that there is a hidden field (meaning a
field exists in the datatable but not displayed on the DataGridView)
and I need to set the value for it programatically for the newly input
rows by user. The value is determined at the moment when the user
creates a new row, since the field represents a category value which
is selected in a TreeView control at the moment. Which event should I
use, and how could I get the newly created row?
I tried XXXBindingSource.CurrentItemChanged, but I think it is not
what I'm looking for. Thank you for reading.
it. It uses the VS.NET generated class mechanisms, so there are three
components like XXXBindingSource, XXXTableAdapter and XXXDataSet.
Everything is fine except that there is a hidden field (meaning a
field exists in the datatable but not displayed on the DataGridView)
and I need to set the value for it programatically for the newly input
rows by user. The value is determined at the moment when the user
creates a new row, since the field represents a category value which
is selected in a TreeView control at the moment. Which event should I
use, and how could I get the newly created row?
I tried XXXBindingSource.CurrentItemChanged, but I think it is not
what I'm looking for. Thank you for reading.