The following should be execute?
int rowcount = this.dataGridView1.Binding
Context[th
is.dataGri
dView1.Dat
aSource].C
ount-1;
// Get specific row selected.
dr = ds.Tables[0].Rows[this.cur
rRow.Index
];
// Mode 1
// No Effective Date therefore draft
// Select Not Approved row with effective date null and the last row in the grid
if ((dataGridView1.SelectedRo
ws[0].Cell
s[7].Value
== null) && (rowcount >= this.dataGridView1.Current
Row.Index)
)
ModeType = modeEnum.mode1;
It seems that this does not work (dataGridView1.SelectedRow
s[0].Cells
[7].Value == null)
maybe another variable empty?
Start Free Trial