I need a row Added event for a DataGridView
Posted
by tizzyfoe
on Stack Overflow
See other posts from Stack Overflow
or by tizzyfoe
Published on 2010-05-06T13:15:23Z
Indexed on
2010/05/06
13:18 UTC
Read the original article
Hit count: 126
What i want to do is set the background of a row based on some criteria, but the datagrid will be fairly large so i don't want to have to loop over all the rows again. The rows get created me doing something like "myDataGridView.DataSource = MyDataSource, so the only way i can think to edit rows is by using an event.
there is a row*s* added event, but that gives me a list of rows that i'd have to iterate over.
Thanks in advance for any help.
© Stack Overflow or respective owner