Geeks With Blogs
Jim Lahman's Blog Fortitude|Endurance|Faith|Teamwork November 2011 Entries
Bind List<T> to a DataGridView
Here is a technique to bind a List (of objects) to a DataGridView so that the public Properties appear as columns. In this example, the columns are binded to the individual public property of the object. The column Random Number is binded to the public property RandomNumber while the column Square Root to the public property SqRt. Create a class that contains the public properties that appear as columns in the dataGridView 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; ......

Posted On Sunday, November 6, 2011 7:21 PM

Copyright © Jim Lahman | Powered by: