'宣言 Public Property CheckBoxVisibility As HeaderCheckBoxVisibility
public HeaderCheckBoxVisibility CheckBoxVisibility {get; set;}
Private Sub SetupColumnWithHeaderCheckBox(ByRef column As UltraGridColumn) 'Return if no column is supplied. If column Is Nothing Then Exit Sub End If ' Set the Header's CheckBoxVisibility so it will display the CheckBox if a CheckEditor is used for the UltraGridColumn ' column.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor ' Set the Header's CheckBoxAlignment so the CheckBox will appear to the Right of the caption. ' column.Header.CheckBoxAlignment = HeaderCheckBoxAlignment.Right ' Set the Header's CheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox ' column.Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.Band End Sub
private void SetupColumnWithHeaderCheckBox(UltraGridColumn column) { //Return if no column is supplied. if (column == null) return; // Set the Header's CheckBoxVisibility so it will display the CheckBox if a CheckEditor is used for the UltraGridColumn // column.Header.CheckBoxVisibility = HeaderCheckBoxVisibility.WhenUsingCheckEditor; // Set the Header's CheckBoxAlignment so the CheckBox will appear to the Right of the caption. // column.Header.CheckBoxAlignment = HeaderCheckBoxAlignment.Right; // Set the Header's CheckBoxSynchronization so all rows within the GridBand will be synchronized with the CheckBox // column.Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.Band; }