i have a dynamic datagrid, created based on an xml spec. I create columns on the fly based on the xml,
case "Text": --> attribute from xml
// Default Column
BoundColumn datagridcol = new BoundColumn();
datagridcol.HeaderText = HeaderText.Trim() + "<span id=" + DataField + "></span>";
datagridcol.DataField = DataField;
datagridcol.SortExpression = "";
then i do a databind()
and then i loop trough every cell on my datagrid to verify for negatives values and change the color of the displayed value as Red.
the question is, how would you be able to access the values on every cell and modify it based on an attribute of the xml spec?
before the databind, you cannot check the values of a particular cell
after the databind, you can check the values, but you don't what is that particular column name?