Iam creating a datatable as
DataTable dtVndDtl = new DataTable();
dtVndDtl.Columns.Add("prvn_Id");
dtVndDtl.Columns.Add("vend_Name");
dtVndDtl.Columns.Add("vend_Id");
dtVndDtl.Columns.Add("prvn_Price");
and appending to datagridview as
dgvPrdtRws.DataSource = dtVndDtl;
I have set the datapropertynames too.. I am adding the rows to datagridview. when I click the save button, my data have to save from datatable to database. But I am getting an extraa empty row la tha last of all my rows. Why does it happening. I dont want to add that last row.. so please help me