Hi,
How can I default the highlighted value so that it is not checked?
Thanks!
M.
Hi Mike,
That did the trick. In the datatable there was no type for the field. Set it to bool and works like a charm.
Cheers,
Hi Michael,
Okay, so you have it set up to Synchronize the header checkbox with the column automatically. But in the screen shot, there is only one row and it's unchecked, and yet the header is checked. So my only guess is that the DataType of the column is set to something that the header checkbox cannot interpret as a Boolean.
Is this a bound column or is it unbound? If it's a bound column, check the DataType. If it's unbound, then you probably just need to set the DataType to Boolean.
Thanks Mike.
This is what we have in our Init Layout event for the grid...maybe the issue is here? We have not set anything manually in the designer.
e.Layout.Bands[1].Columns["export"].Header.Caption = "Select to Export"; e.Layout.Bands[1].Columns["export"].Width = 140; e.Layout.Bands[1].Columns["export"].Header.Appearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[1].Columns["export"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox; e.Layout.Bands[1].Columns["export"].Header.CheckBoxAlignment = HeaderCheckBoxAlignment.Left; e.Layout.Bands[1].Columns["export"].Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.RowsCollection; e.Layout.Bands[1].Columns["export"].Header.CheckBoxVisibility = HeaderCheckBoxVisibility.Always;
Thanks,
Michael
The header checkbox defaults to unchecked. So I don't know why yours is checked. How are you turning on the header checkboxes? Are you setting the HeaderCheckBoxSynchronization?
To explicitly set the value of the checkbox, you call the SetHeaderCheckedState method on the column. And you have to pass in the rows collection. In your case, since your screen shot shows child rows, you would have to call it for the child rows of every parent row.