DataGridView row added event

Posted by p4bl0.666 on Stack Overflow See other posts from Stack Overflow or by p4bl0.666
Published on 2010-04-16T13:09:47Z Indexed on 2010/04/16 13:13 UTC
Read the original article Hit count: 745

Filed under:
|

Hi all, I'm using a DataGridView and I bind a List to the DataSource.

I already have the right columns and I map exactly the fields. What I'm trying to do is handling a sort of RowAdded or RowDataBound (like in aspx GridView) event.

The only event that I found is RowsAdded but no matter how many items I have, it is fired only 4 times the first time i bound, and twice the other times, with values

e.RowCount:1 e.RowIndex:0 e.RowCount:[n-1] e.RowIndex:1 *where n is the number of my items

is there a way I can get to a handle for each item?

© Stack Overflow or respective owner

Related posts about c#

Related posts about datagridview