in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Datamap and combolist with disabled items

Last post 05-06-2008 2:51 AM by Wolfgang Knauf. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-02-2008 5:05 AM

    Datamap and combolist with disabled items

    In a flexgrid which displays a customer category history I have a column with a datamap. However, some of the items are inactivated and need to be removed from the combolist when it is dropped down, but those items still need to be displayed in the old rows where they appear.

     I haven't figured out a way to do this while using a datamap, but I'm sure this must be a problem that has occurred before. What is the solution?

     C1FlexGrid version: 2.6.20073.357

  • 05-06-2008 2:51 AM In reply to

    Re: Datamap and combolist with disabled items

    Hi Wolfeye,

    you could try to remove them in the "SetupEditor"-Event directly from the
    combobox item list.

    Something like:

    private void c1FlexGrid_SetupEditor (object sender, RowColEventArgs e)
    {
    if (e.Col == myCol)
    {
    ComboBox comboBoxEditor = (ComboBox)this.c1FlexGrid.Editor;
    //Remove combobox items.
    }
    }


    I hope this helps

    Wolfgang
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.