Hi Sabir,

I have one more doubt in datagridview cell validating.I need to validate empty row.If user leave empty row i need to prompt messge to delete or enter value.

I am using this following code for my cell validation.But,is not set for my project.

Please help me.

Code is:
If dgvHeaderRemarks.Columns(e.ColumnIndex).Name = "Remarks" Then

'If e.FormattedValue IsNot Nothing Or _
If String.IsNullOrEmpty(e.FormattedValue.ToString().T rim) Then
MessageBox.Show("HeaderRemarks Field cannot be empty.Please use delete row.", "HeaderRemarks", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

e.Cancel = True
End If
End If

How can solve this problem.