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
405
UltraListView as grid's cell
posted

hi

can i add UltraListView to grid's cell? meaning, when user click on cell an ultra list view will be open and user will choose values from the list.

if this is possible, can you please axplain how can it be done? a sample code will be very very helpfull

Thanks, Michal

  • 17259
    Offline posted

    1. Create your listview by the designer.

    2. Create a DropDownEditorButton int the code of the grid container (form, usercontrol etc.)

    3. Set yourEditorButton.Control = yourListView

    4. Create UltraTextEditor.

    5. Add: yourTextEditor.ButtonsRight.Add(yourEditorButton).

    6. Set yourTextEditor.ReadOnly = true.

    7. Set yourGridColumn.CellActivation = Activation.ActivateOnly.

    8. Set yourGridColumn.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;

    9. Set yourGridColumn.EditorControl = yourTextEditor.