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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top