Hi to forum members
I have a problem in a datagridview .
Col2 must be null if col1 is null.
I have used a cellvaluechanged event with
to no success.
How should I do it?
I have a problem in a datagridview .
Col2 must be null if col1 is null.
I have used a cellvaluechanged event with
VB.NET:
if isdbnull(mydgv.rows(i).cells("Col1").value) orelse mydgv.rows(i).cells("Col1").value.tostring.equals(dbnull.value) orelse _
string.isnullorwhitespace(mydgv.rows(i).cells("Col1").value) then
isdbnull(mydgv.rows(i).cells("Col2").value)
end if
to no success.
How should I do it?