Hey, I am attempting to evaluate a Condition
for each Cell
of each Row.
I am aware of OnItemDataBound
and plan to use this, however I need the conditions to be more generic.
The setup I am looking to achieve is:
A Conditions Data Base Table with the Columns:
When I query the Data Base for any Data I want to also gather all conditions for each column of that table.
When a row is data bound to the grid I want to evaluate the condition for each cell. If the condition passes I apply the associated style to that cell based on StyleID (Which would be another data base table with BackColor, ForColor, Bold, ect..).
I would like to be able to pass any data to the Grid and have it run all conditions and apply styles without ever hard coding column names or conditions in the application.
I am attempting to achieve this because the conditions and styling will be user created by another application.