Hi,Iam using datagridview,How to add a new row to the datagrid view?In insert button i wrote this code,dataGridView1.Rows.Add(3);when i run this code,it is giving the following exceptionexception: rows cannot be programatically to the datagridview's collection when control is databound
In save button i wrote like this,
private
{da.Update(ds,
}
It is giving the following exception:
Update requires a valid InsertCommand when passed DataRow collection with new rows.
Please help me.Thanks In Advance