¬Hi there,
I have a quaetion in datagrid view.
In datagridview I have add a constaint and if the user didn’t meet the reuirment I add an error text. Which shown below
if (c == 2)
{
MessageBox.Show("Cannot select the file name","Message",MessageBoxButtons.OK,MessageBoxIcon.Warning);
dgvForm.Rows[e.RowIndex].ErrorText = "Cannot select the file name";
e.Cancel = true;
return;
}
else
dgvForm.Rows[e.RowIndex].ErrorText = string.Empty;
but when I try to delete that row it donse’t give me to delete the unless I correct that error. How can I avoid that and meake the orw to be deleted?
how can i avoid this situation??
please can i get some guidance on this
thanxxxxxx