Here is an example:

http://www.c-sharpcorner.com/UploadFile/ykocdag/GenericDataGridView07042006170532PM/GenericDataGridView.aspx