Hello,
I'm using an UltraGrid containing a column with a boolean value. I want to change the style of the checkbox displayed in this column. I defined this style in an isl file designed using AppStylist application.
This works fine except if I want to change the checkBoxGlyphInfo property of the checkbox. Then nothing is changed in my grid. I tried to place a checkbox outside of my grid and then the style I defined with the checkBoxGlyphInfo property is applied to this checkbox.
Am I doing something wrong?
Hi,
Okay, so the isl file you have here is applying the glyphs to the UltraCheckEditor component role. So that will only affect that one control and no others.
If you want to change the glyphs in the entire application, you should use the "All Components" role instead.
You could also be more selective, by going to the UltraGrid component role and changing the CheckBoxGlyphInfo there.
A third option would be to assign the UltraCheckEditor control to the grid column:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { this.ultraCheckEditor1.Text = string.Empty; this.ultraCheckEditor1.CheckAlign = ContentAlignment.MiddleCenter; e.Layout.Bands[0].Columns[0].EditorComponent = this.ultraCheckEditor1; }
Sorry if I am not clear enough. I already changed the checkbox glyphs in the isl file. The style of the checkbox outside of the grid if changed according to the glyph defined in the isl file, but this doesn't work for the checkbox that is contained in the grid.
I have attached a simple prototype to this message.
You lost me. Are you talking about setting the CheckBoxGlyphInfo property in code or in the isl file?
Are you saying that the grid is displaying the checkboxes as you want them but you want to use a different style for UltraCheckEditor controls outside of the grid?
If you want to change the checkbox glyphs for your whole application, then you can do this in the Isl file and you do not have to set any properties in code.