Data Entry via DataGrid

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

Is it possible to do add records via a datagrid? For
example, an application opens a datagrid with its source
a datatable with 2 records. Can one add a third record
to the source datatable via the datagrid? If so, how
please? Thank you.
JT
 
DataGrid allows adding new records by default provided that the DataGrid is
bound to something that implements the IBindingList interface (this inludes
DataView which, in turn, enables this functionality for DataTable). You
don't need to create a DataView manually - the DataGrid will create one
behind the scenes when you bind it to a DataTable.
 
Back
Top