Add New Record in Empty DataGrid

  • Thread starter Thread starter Aaron Prohaska
  • Start date Start date
A

Aaron Prohaska

Does anyone know if its possible to add a record when a datagrids
datasource is empty. I would like the option to do this so that I don't
have to create a form for adding records to my datagrids.

Regards,

Aaron Prohaska

-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
Wrench Science Inc.
http://www.wrenchScience.com/
Phone: 510.841.4748 x206
Fax: 510.841.4708
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
 
Aaron,

One possible way you can do this is to setup a DataTable with the associated
data schema. Then after you bind this as the DataSource for the DataGrid,
the DataGrid is smart enough to use the schema as the template for new
records.

Eric
 
Back
Top