Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
222
ComboEditor with UltraGrid
posted

I have an ultracomboeditor using a dataset datasource set as the editorcontrol on one of the columns in an ultragrid based on another datasource.  I want the dropdown items of the comboeditor to have different forecolors based on another value in the item's datarow and another data value in the ultragrid row.  Is there a way to do this?

For example:

The Ultragrid has an available rooms column.  The user can select a room from a comboeditor tied to a "rooms" datatable.  Each room has a maximum occupancy value.  The ultragrid also has an expected occupancy column.  When the user drops down the rooms list, I'd like it to display rooms whose maximum occupancy is less than the expected occupancy in a different color so the user can see that the room may not work.  (I don't want to filter out rooms from the list, because the user could override.)