Home Forums WinForms controls Xceed Grid for WinForms CheckBoxEditor initial state

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17259 |

    Hello,

     

    I have a little problem. In my insertionrow of a data bounded  grid I have a checkbox editor. I need its initial state to be uncheked.

    I tried this, but didn’t work. Any Ideas???

     

    WinCheckBox chk_temp = new WinCheckBox(“test”, CheckState.Checked);

    insertionRow1.Cells[15].CellEditorManager = new CheckBoxEditor(chk_temp);

    insertionRow1.Cells[15].CellViewerManager = new CheckBoxViewer(chk_temp);

     Actually it dows show the “test” label but the initial state is always Indeterminate.

    Thank you very much 

         

    Imported from legacy forums. Posted by Andrea (had 1197 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Andrea,

    Try this:

    WinCheckBox chk_temp = new WinCheckBox(“test”, CheckState.Unchecked);

    chk_temp.ThreeState =

    false;

    insertionRow1.Cells[15].CellEditorManager = new CheckBoxEditor(chk_temp);

    insertionRow1.Cells[15].CellViewerManager = new CheckBoxViewer(chk_temp);

    PS:You say you need the initial state of the checkbox to be unchecked, but you set the attribute CheckState in the WinCheckBox Constructor to CheckState.Cheked.

     Regards,

     Alain Jreij,

     Technical Support

    Imported from legacy forums. Posted by Alain [Xceed] (had 973 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.