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
1475
Tri State Check Box in Win Grid Column
posted

Hi All,

I have a wingrid where one of the column has Check Box Style. But we need a tri-state Check Box here and it should serve something like this.

0-UnChecked

1- Checked

2- Checked But With Gray BackGround (Or Something Striking Not Similar With Checked so that the user can identify the state nstead of Indeterminate state which has the blue color filled in the check box)

Can this be done by implementing  Infragistics.Win.IEditorDataFilter?

Thanks in Advance.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    What is the DataType of the column?

    What kind of DataSource are you using?

    The third state you are referring to is usually called the Indeterminate state.

    If the 0, 1, and 2 you have here are integer values and you have to use those, then I beleive you would need a DataFilter to translate 0, 1, and 2 into CheckState.False, CheckState.True, CheckState.Indeterminate and vice versa.

    But if you are using (or can use) values like true, false, and DBNull, or you can change the DataType of the field to a CheckState, then you can probably achieve what you want by simply setting the Style of the column to TriStateCheckBox.

Children