G
Guest
I am trying to create an editable grid of data. The source of the data is a
custom collection I have created the collection using generics...
List<myObjectType> myList = new List<MyObjectType>()
Then filled "myList" with objects etc etc.
I can then set the datasource of a BindingSource to "myList". It displays
the data as expected but no matter what properties I set on the BindingSource
or the DataGirdView control, I cannot edit the data.
I have also tried binding the DataGridView directly to the List - no
different.
I have also tried using the BindableList rather than the List, for my
datasource - no luck.
What am I missing? I suspect it's something so basic that all the doco
skips over it, because I can't find any example this simple, except that
maybe this type of datasource is not editable in the first place.
Any help greatly appreciated.
Thanks.
custom collection I have created the collection using generics...
List<myObjectType> myList = new List<MyObjectType>()
Then filled "myList" with objects etc etc.
I can then set the datasource of a BindingSource to "myList". It displays
the data as expected but no matter what properties I set on the BindingSource
or the DataGirdView control, I cannot edit the data.
I have also tried binding the DataGridView directly to the List - no
different.
I have also tried using the BindableList rather than the List, for my
datasource - no luck.
What am I missing? I suspect it's something so basic that all the doco
skips over it, because I can't find any example this simple, except that
maybe this type of datasource is not editable in the first place.
Any help greatly appreciated.
Thanks.