I don't quietly understand what's the problem is?
You need to create clumns in a grid and corresponding columns in a dataTable.
I use dataTableInstance.Columns.Add("ColumnName", typeof(DataType));
for data tables and for grid i use
SomeFieldType field = new SomeFieldType();
field.DataField = "ColumnName"; // Same as above, in dataTableInstance
gridInstance.Columns.Add(field);
When data binding should be done: gridInstance.DataSource = dataTableInstance;
Olegas
2010-03-19 09:29:22