Posted By: lethalbyte | Oct 30th, 2005 @ 4:55 AM
page 1 of 1
Comments: 1 | Views: 4529

I'm binding a generic List(of t) to a datagridview, and I'm trying to make it so you can add items to the list through the grid.  The generic is a readonly property of another class.

I've also tried using bindinglist(of t) to no avail.

Am I missing something?

Thanks Smiley

Ok, sorted it, and now I'm slightly embarrassed I even posted here.  The answer was 9/10s correct with using BindingList(Of T).  I just didn't set it up to accept changes;

BindingList.AllowEdit = True
BindingList.AllowNew = True
BindingList.AllowRemove = True

Simple as that!  Well done Microsoft!

page 1 of 1
Comments: 1 | Views: 4529