N
Norman Diamond
Using C# in VS 2005 SP1 with .Net Framework 2 SP1, I have the following
code:
private void MyDataGridView_RowPostPaint(object sender,
DataGridViewRowPostPaintEventArgs e)
{
DataGridViewRow gridRow = MyDataGridView.Rows[e.RowIndex];
// ....
and it crashes because e.RowIndex is larger than the number of rows in
MyDataGridView.
It's pretty obvious how to code a workaround for this bug, but it seems ...
hmm, maybe no dumber than usual.
code:
private void MyDataGridView_RowPostPaint(object sender,
DataGridViewRowPostPaintEventArgs e)
{
DataGridViewRow gridRow = MyDataGridView.Rows[e.RowIndex];
// ....
and it crashes because e.RowIndex is larger than the number of rows in
MyDataGridView.
It's pretty obvious how to code a workaround for this bug, but it seems ...
hmm, maybe no dumber than usual.