Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

DataGridview SelectionChanged Event : Fires 3+ Times

$
0
0

When I fill a dataGridView with data, the SelectionChanged Event seems to fire too many times. If I assign the dataSource to the Grid In Form_Load, the SelectionChanged Event fires 5 times. If I assign the datasource to the Grid using a Button Press, then the SelectionChanged Event Fires 3 times.

I am expecting the event to fire only once, as the Grid Loads when first cell or row is selected.

I have the SelectionMode = RowHeaderSelect

I am using VS2005 Professional CTP July.

Is there a problem with this event?

Russell Mangel
Las Vegas, NV


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>