DataGrid binding.
-
Hi All, Am new to the c# world.I have been trying to find an example or some reference which would help me bind an object directly to a DataGrid, but i havent come across one. All the examples bind DataSets which have data from databases. Is it possible to directly bind an object to a DataGrid, without me having to make an intermediate DataSet and write the read/write funtionality myself. Any help appreciated. Thanks
-
Hi All, Am new to the c# world.I have been trying to find an example or some reference which would help me bind an object directly to a DataGrid, but i havent come across one. All the examples bind DataSets which have data from databases. Is it possible to directly bind an object to a DataGrid, without me having to make an intermediate DataSet and write the read/write funtionality myself. Any help appreciated. Thanks
-
Hi All, Am new to the c# world.I have been trying to find an example or some reference which would help me bind an object directly to a DataGrid, but i havent come across one. All the examples bind DataSets which have data from databases. Is it possible to directly bind an object to a DataGrid, without me having to make an intermediate DataSet and write the read/write funtionality myself. Any help appreciated. Thanks
You can also bind a datagrid to a Collection or any object that implements the IList or IListSource Interface.
-
You can also bind a datagrid to a Collection or any object that implements the IList or IListSource Interface.
Hi, Thanks.But my obeject is more of a graph and i have arays everywhere. Does that mean that i will have to change everything into collections, and implement all their methods. that will surely suck. I have a stupid doubt. Could i just serialize the whole obejct into an xml strem( SoapFormatter) and then deserialize it into a Dataset, and bind that to a DataGrid. Thanks