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
925
Setting Column Header Checkbox to Unchecked
posted

I am creating a header checkbox and it is appearing in a indeterminate state - how can I set it to unchecked by default?

.Columns("Select").Style = UltraWinGrid.ColumnStyle.CheckBox

.Columns("Select").Header.CheckBoxVisibility = HeaderCheckBoxVisibility.Always

.Columns("Select").Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.RowsCollection

.Columns("Select").SetHeaderCheckedState(ugReleases.Rows, CheckState.Unchecked)

  • 48586
    posted

    Hello,

    I am just checking about the progress of this issue. Let me know If you need my further assistance on this  matter?

    Thank you for using Infragistics Components.

  • 48586
    posted

    Hello,

     

    CheckState of the header is determine  by the corresponding rows collection, so it seem that initially your rows different checked states. So what I could suggest you is to se SetHeaderChekedSate after your grid was populated with data. Another option would be if you handle InitializeRow event and set appropriate cell value to the cells belong to your checkbox column.

     

    Please let me know if you have any further questions.