B
Brett Romero
When I create this table and add it to my DataGrid (framework v1.1),
the TableStyle works fine:
DataTable dt = new DataTable();
DataColumn dc = new DataColumn("AreaCode");
DataColumn dctwo = new DataColumn("Test");
dt.Columns.Add(dc);
dt.Columns.Add(dctwo);
I have the style set to only show AreaCode. However, when I use a
table from the database, every column displays. AreaCode is a column
in this table, which means I should only see AreaCode in the grid.
I've looked at the grid properties in the debugger and see the
tablestyle AreaCode column is there. I also see in the DataTable a
column named AreaCode. What else do I need to look for to figure it
out?
Thanks,
Brett
the TableStyle works fine:
DataTable dt = new DataTable();
DataColumn dc = new DataColumn("AreaCode");
DataColumn dctwo = new DataColumn("Test");
dt.Columns.Add(dc);
dt.Columns.Add(dctwo);
I have the style set to only show AreaCode. However, when I use a
table from the database, every column displays. AreaCode is a column
in this table, which means I should only see AreaCode in the grid.
I've looked at the grid properties in the debugger and see the
tablestyle AreaCode column is there. I also see in the DataTable a
column named AreaCode. What else do I need to look for to figure it
out?
Thanks,
Brett