When I added the UltraGrid's Cells new ultraOptionSet1 GlyphInfo.
new ultraOptionSet1 GlyphInfo.
Infragistics.Win.UIElementDrawParams.Office2007RadioButtonGlyphInfo;but I find it very small. How to custom the Radio Size?
You can customize the size, but unfortunately in order to do that you must also provide the images which represent the glyph in each of its various states.
Example:UltraOptionSet option = new UltraOptionSet();option.GlyphInfo = new RadioButtonImageGlyphInfo( new Size(25, 25), image1, image2, image3, image4, image5, image6, image7, image8, image9, image10 );column.EditorControl = option;
Thanks!
but it doesn't work. why???
UltraOptionSet option = new UltraOptionSet();
option.GlyphInfo = new RadioButtonImageGlyphInfo(new Size(30, 30), UIElementDrawParams.Office2007RadioButtonGlyphInfo.NotSelectedDisabled,UIElementDrawParams.Office2007RadioButtonGlyphInfo.SelectedDisabled, UIElementDrawParams.Office2007RadioButtonGlyphInfo.NotSelectedNormal, UIElementDrawParams.Office2007RadioButtonGlyphInfo.SelectedNormal, UIElementDrawParams.Office2007RadioButtonGlyphInfo.NotSelectedMouseOver, UIElementDrawParams.Office2007RadioButtonGlyphInfo.SelectedMouseOver, UIElementDrawParams.Office2007RadioButtonGlyphInfo.NotSelectedPressed, UIElementDrawParams.Office2007RadioButtonGlyphInfo.SelectedPressed, UIElementDrawParams.Office2007RadioButtonGlyphInfo.NotSelectedPressedAndOver, UIElementDrawParams.Office2007RadioButtonGlyphInfo.SelectedPressedAndOver);
row.Cells["ONE"].EditorControl = option;
The images will not be scaled to the size you specified. So all the code you have here will do is leave some padding around the glyph. If you want bigger images, then you have to supply larger images. Stretching the existing images is a bad idea, anyway, since it will look grainy.
Well.
Now,I hope that you selected one ,but two and three 's column is unselected .
How to do ?
I use the bigger images,It work well.Tkanks a lot!