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" <Jo****@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
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?