Thanks Bart,
However, if you set up a simple test application to mimic the scenario in my
original post i.e.
- A Database table with 3 rows with an ID column and a 'completed' column
with
values 'N'
- The 'completed' column hooked to a DataGridView CheckBox column via a
DataView
- The DataView filtered to only show completed='N'
you should find the following behaviour:
Click the checkbox cell in the first row (starting index 0) to change the
value to true ( Event: BeginEdit for first row)
Click third row (starting index 2) - we get an IndexOutofRangeException:
Index 2 does not have a value
What seems to be happening is that when the RowFilter kicks in (presumably
on EndEdit for first row), the third row's index becomes 1 (as only 2 rows
left) but somewhere in the system the index value for the third row is still
at 2 and has not been updated.
Similar errors occur with more rows and different sequences of clicks.
Is this a bug or am I not handling some event somewhere?
I hope the above makes sense.
Thanks
> Hi,
>
[quoted text clipped - 33 lines]
>
> > Thanks
Bart Mermuys - 19 Oct 2005 20:33 GMT
Hi,
> Thanks Bart,
>
[quoted text clipped - 28 lines]
>
> Is this a bug or am I not handling some event somewhere?
I tried the setup you describe and i get a NullReferenceException when i
repeat the steps twice. I suspect this is a bug, it doesn't happen with a
DataGrid in vs2003. The latest version i tried is vs2005b2, hopefully it's
fixed in the final release.
Greetings
> I hope the above makes sense.
>
[quoted text clipped - 41 lines]
>>
>> > Thanks
tab - 19 Oct 2005 20:49 GMT
Bart,
I really appreciate your help - thank you.
I think I''ll take the unbound route.......
> Hi,
> > Thanks Bart,
[quoted text clipped - 82 lines]
> >>
> >> > Thanks