Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# winforms datagridview bind to list

var list = new List<Person>()
{
    new Person { Name = "Joe", },
    new Person { Name = "Misha", },
};
var bindingList = new BindingList<Person>(list);
var source = new BindingSource(bindingList, null);
grid.DataSource = source;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #winforms #datagridview #bind #list
ADD COMMENT
Topic
Name
7+1 =