G
Guest
In a datagrid on a webform, I display item_id, item_type, and item_description.
My item_types are numeric values ranging from 1-4. What I would like to do
is, for each item_type, I would like to display a different back color(for
the row). On each page I display 50 items of different types. Currently I
just assign a Data Table to my datagrids data source and bind:
dgrItemDetails.DataSource = SP that gets the Data Table.
dgrItemDetails.DataBind()
I am not sure at what point I should traverse through each row of data grid
and set a different back color depending on the item_type.... any tips are
greatly appreciated. TIA.
My item_types are numeric values ranging from 1-4. What I would like to do
is, for each item_type, I would like to display a different back color(for
the row). On each page I display 50 items of different types. Currently I
just assign a Data Table to my datagrids data source and bind:
dgrItemDetails.DataSource = SP that gets the Data Table.
dgrItemDetails.DataBind()
I am not sure at what point I should traverse through each row of data grid
and set a different back color depending on the item_type.... any tips are
greatly appreciated. TIA.