This project is read-only.


List is always used in generic programming, and DataGridView is the most often used control to display collection data in Winform application.

This demo demonstrates how to bind an object list to DataGridView control, and also introduces technicals of adding row number and icon over RowHeader of DataGridView.

Knowledge Points

  • Take an object list as dataSource of DataGridView
  • RowPostPaint Event
  • CellPainting Event

Interesting Points

  • How to make the added content in the center of RowHeader while using cellPainting event technical ?


Last edited Nov 29, 2012 at 8:58 AM by Eason, version 1


No comments yet.