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
140
ValueBasedAppearance & Selected Rows
posted

I've got an UltraGrid displaying information in a detailed list like display (similar to the details view in windows explorer), and am using the ValueBasedAppearance property on the columns to to display conditional formatting for certain values.  The grid has the SelectTypeRow set to Single (and the cell/col set as None) to give a completely selected row appearance, however this results in any cell in the current selected row to completely ignore the ValueBasedAppearance.

Can anyone suggest the best way to alter the appearance of these conditionally formatted cells to display differently when selected (not necessarily to the ValueBasedAppearance, just differently so the feedback to the user isn't totally lost when the row is selected)?

Thanks,

Sue

Parents
  • 23930
    Verified Answer
    Offline posted

    Hello Sue,

    Thank you for contacting Infragistics.

    What you could do in your is to use the InitializeRow event of the grid to check the condition values and set the cell selected and normal appearances. This way even if the whole row is selected these cells will keep their conditional formatting as the cell appearance object overrides the row appearance for the specific cell.

    I have attached a sample which demonstrates this suggestion.

    Please let me know if you have any additional questions.

    WG_ValueBasedAppearanceSelectedRows.zip
Reply Children