//Set grid cell text edito for lookup public static void SetCellLookupEditor ( UltraGridColumn col, EditorButtonEventHandler Event) { //Set part lookup editor for column var txtAssemblyPart = new UltraTextEditor { UseAppStyling = false }; var btnEditor = new EditorButton { Text = "..", Width = 17, Appearance = { TextHAlign = HAlign.Center } }; txtAssemblyPart.EditorButtonClick += Event; txtAssemblyPart.ButtonsRight.Add(btnEditor); col.ButtonDisplayStyle = ButtonDisplayStyle.Always; col.EditorComponent = txtAssemblyPart; }
//Set grid cell text edito for lookup public static void SetCellLookupEditor( UltraGridColumn col, EditorButtonEventHandler Event) { //Set part lookup editor for column var txtAssemblyPart = new UltraTextEditor { UseAppStyling = false }; var btnEditor = new EditorButton { Text = "..", Width = 17, Appearance = { TextHAlign = HAlign.Center } }; txtAssemblyPart.EditorButtonClick += Event; txtAssemblyPart.ButtonsRight.Add(btnEditor); col.ButtonDisplayStyle = ButtonDisplayStyle.Always; col.EditorComponent = txtAssemblyPart; }