add record to datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a datagrid in it. I have two btns, add record, update
record. I am not sure how to add a record to the datagrid and then update it?
 
If you are using a BindingContext you can use the AddNew method. Similarly,
you can add a new datarow to the underlying datatable ie
DataRow dro = dataTableName.NewRow();
dataTableName.Rows.Add(dro);

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
Joanne said:
I have a form with a datagrid in it. I have two btns, add record, update
record. I am not sure how to add a record to the datagrid and then update
it?
 
Back
Top