hi..
i want to remove the current row in the data grid how can i do this. and i wants to write this in cell enter event.
what i am doing here is in cell enter event in the data grid i am checking weather the the entered value is already there in the database. if it so i am clearing that entered value and wants to remove that row. here i don't know how to remove this row.
i want to write the code in cell enter event.
Supposing the name of the Datagrid used is dgvGrid
Now to remove the currently selected i have used:
dgvGrid.Rows.Re moveAt(dgvGrid. CurrentRow.Inde x);
but its giving an error:
"Operation cannot be performed in this event handler."
thank you...
i want to remove the current row in the data grid how can i do this. and i wants to write this in cell enter event.
what i am doing here is in cell enter event in the data grid i am checking weather the the entered value is already there in the database. if it so i am clearing that entered value and wants to remove that row. here i don't know how to remove this row.
i want to write the code in cell enter event.
Supposing the name of the Datagrid used is dgvGrid
Now to remove the currently selected i have used:
dgvGrid.Rows.Re moveAt(dgvGrid. CurrentRow.Inde x);
but its giving an error:
"Operation cannot be performed in this event handler."
thank you...