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,...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1590 | Hits: 41

Similar Posts

  • Custom Editing Behavior for DataGridView TextBox Columns more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD