hey
i have a datagridview and i am validating 3 columns, the user has to enter data in to those 3 columns,
else if ((!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[0].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[1].Value.ToString())) && (!string.IsNullOrEmpty(dgvActions.Rows[dgvAAddR - 1].Cells[2].Value.ToString())))
when the user hasn't entered any value in one of this cells there is an NUll reference exception occuring
how can i avoid this and check whether the columns are not null nad empty,
thanx