Take Caution with WinForms DataGridView RowPrePaint
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 09 Sep 2009 |
View original | Bookmarked: 0 time(s)
The DataGridView’s RowPrePaint is a great way to deal with displaying information across graphs. I have been using it with Entity Framework data when I have a grid that shows an entity who relies on an entity reference for more details.
For example if you have an order line item with a product foreign key, you don’t want to display the FK, you want the product name.
With RowPrePaint, as the row is being created from its data, you can inject your own data, formatting etc.
.csharpcode,...