A
Al Bastido via .NET 247
could somebody please explain to me how the datatable.newrow method works, i've been trying to figure it out for weeks. I need to emulate it myself.
I can bind my datagrid to a collection of objects with no problem. But that leaves me with a fixed number of properties per object and therefore a fixed number of columns in my datagrid.
I wanted to do something similar to the datatable, where you add columns then have a method that generates a row object based on the column schema.
The reason i want to do this is to be able to hold objects in the table rather than scalar value as the datatable does.
Thanks in advance - i'm getting to the stage of dispear
I can bind my datagrid to a collection of objects with no problem. But that leaves me with a fixed number of properties per object and therefore a fixed number of columns in my datagrid.
I wanted to do something similar to the datatable, where you add columns then have a method that generates a row object based on the column schema.
The reason i want to do this is to be able to hold objects in the table rather than scalar value as the datatable does.
Thanks in advance - i'm getting to the stage of dispear