Add New Record in Empty DataGrid

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
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
 
E

Eric Cherng

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
 

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

Top