F
fripper
I think I am using the proper terminology here ... I am using VB 2003 and
have a DataGrid to which I then attach a TableStyle ... then I set the
properties of the TableStyle (BackColor, HeaderBackColor, etc.) ... then I
create several DataGridTextBoxColumns and set their properties (MappingName,
Width, Alignment, etc.) ... then I add these columns to the DataGridStyle.
Next, using the MappingNames I add the columns to a DataTable ... then I add
the DataTable to a DataSet ... and finally bind the DataSet to the DataGrid
so the user can see it (whew!). All of this seems incredibly complicated
when all I want to do is display some stuff in tabular form with some column
headers.
In any event, I would like to set the foreground color of a displayed row
based on the value of a particular item in the row ... yet with all these
constructs (table styles, textbox columns, data tables, etc.) I cannot
figure out how to do it. Can someone help me understand how to do this ...
or point me to an article that will help?
Thanks very much.
have a DataGrid to which I then attach a TableStyle ... then I set the
properties of the TableStyle (BackColor, HeaderBackColor, etc.) ... then I
create several DataGridTextBoxColumns and set their properties (MappingName,
Width, Alignment, etc.) ... then I add these columns to the DataGridStyle.
Next, using the MappingNames I add the columns to a DataTable ... then I add
the DataTable to a DataSet ... and finally bind the DataSet to the DataGrid
so the user can see it (whew!). All of this seems incredibly complicated
when all I want to do is display some stuff in tabular form with some column
headers.
In any event, I would like to set the foreground color of a displayed row
based on the value of a particular item in the row ... yet with all these
constructs (table styles, textbox columns, data tables, etc.) I cannot
figure out how to do it. Can someone help me understand how to do this ...
or point me to an article that will help?
Thanks very much.