S
Simon Harvey
Hi Guys,
Can anyone tell me why the DataGridView.SelectionChanged event fires
twice when I databind to it.
If I do the following, the first row is selected automatically, but the
changed event fires twice:
List<Trailer> trailers = Trailer.SelectAll();
trailerBindingSource.DataSource = trailers;
This is causing a problem because I hide various buttons based on which
row is selected and the multiple event invocation is causing screen
flicker as it executes multiple times
Can anyone help with this?
Many thanks
Simon
Can anyone tell me why the DataGridView.SelectionChanged event fires
twice when I databind to it.
If I do the following, the first row is selected automatically, but the
changed event fires twice:
List<Trailer> trailers = Trailer.SelectAll();
trailerBindingSource.DataSource = trailers;
This is causing a problem because I hide various buttons based on which
row is selected and the multiple event invocation is causing screen
flicker as it executes multiple times
Can anyone help with this?
Many thanks
Simon