Hi, I need to create a winforms ultra grid with a column that has three radio buttons with captions in each cell : Yes / No / Not Sure.
When the user selects all the answers and presses the "Done" button, I will do some processing for each row.
I wonder if there is a good sample out there of how this can be done.
Thanks,
Helen
Hi hgoussarova,
I have constructed and attached a commented sample, to provide further context for this behavior.
Please find the sample attached.
If you have any questions at all regarding this approach, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Hi Chris,
When I run your sample code, the very first row is missing captions.
Same thing happens in my application. I attached the image of the sample app running.
I am using Infragistics 11.2, 64 bit Win7, .net framework 3.5, compiling as AnyCPU.
Could you please help.
Thanks
Helen.
Hi Helen,
The behavior you are observing is due to the lack of contrast between the row selection color and the cell text color, for the theme that you are using; the captions are indeed present.
It is certainly possible to get around this if you are trying to maintain the same theme, by creating a higher contrast between the active row highlight and the cell’s text.
One possible approach might include accessing the ActiveRowAppearance exposed from UltraGrid.DisplayLayout and setting the BackColor to White, effectively removing the appearance of the row highlight over the OptionSet and then setting the ForeColor to Black so that the text of neighboring cells of the active row remain visible when the row is selected.
Example:
void ultraGrid1_AfterRowActivate(object sender, EventArgs e) { ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.ForeColor = Color.Black; ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.White; }
I have modified the sample that I provided earlier, to reflect this approach.
If you have any further questions, please let me know.