R
Russ
I've been trying to figure out how to use the design time column
creation of columns. I turn off AutoGenerateColumns and create the
bound columns in the designer. But how the heck do I get the data
into the grid? All the examples I have seen use a DataTable and add
the columns and rows to it. But what do you do if the columns are
already created? I tried creating the data table anyway and binding
to it, but it was ignored.
I have an ArrayList that contains a number of class instances, each of
which need to be a row in the grid. Each class instance has one
string (name), and two doubles (amounts). The datagrid columns are
"Name", "Amount1", "Amount2". How to bind this data?
The reason I need to use the bound columns is that I want to use
Template Columns so I can make the amounts directly editable in the
grid. But I figured I would first try to see if I can get the data
displayed in a bound column before I try to tackle the Template stuff.
Thanks for any help,
Russ
creation of columns. I turn off AutoGenerateColumns and create the
bound columns in the designer. But how the heck do I get the data
into the grid? All the examples I have seen use a DataTable and add
the columns and rows to it. But what do you do if the columns are
already created? I tried creating the data table anyway and binding
to it, but it was ignored.
I have an ArrayList that contains a number of class instances, each of
which need to be a row in the grid. Each class instance has one
string (name), and two doubles (amounts). The datagrid columns are
"Name", "Amount1", "Amount2". How to bind this data?
The reason I need to use the bound columns is that I want to use
Template Columns so I can make the amounts directly editable in the
grid. But I figured I would first try to see if I can get the data
displayed in a bound column before I try to tackle the Template stuff.
Thanks for any help,
Russ