本文整理匯總了C#中Xceed.Wpf.DataGrid.DataGridControl.SetValue方法的典型用法代碼示例。如果您正苦於以下問題:C# DataGridControl.SetValue方法的具體用法?C# DataGridControl.SetValue怎麽用?C# DataGridControl.SetValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Xceed.Wpf.DataGrid.DataGridControl
的用法示例。
在下文中一共展示了DataGridControl.SetValue方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: SetIsUnselectable
public static void SetIsUnselectable(DataGridControl dataGrid, bool value)
{
dataGrid.SetValue(IsUnselectableProperty, value);
}
示例2: SetMergedHeaders
public static void SetMergedHeaders(DataGridControl dataGrid, ObservableCollection<MergedHeader> headers)
{
dataGrid.SetValue(MergedHeadersProperty, headers);
}
示例3: SetIsRowVirtualizationEnabled
public static void SetIsRowVirtualizationEnabled(DataGridControl dataGrid, bool value)
{
dataGrid.SetValue(IsRowVirtualizationEnabledProperty, value);
}
示例4: SetIsInitialSelectionDisabled
public static void SetIsInitialSelectionDisabled(DataGridControl dataGrid, bool value)
{
dataGrid.SetValue(IsInitialSelectionDisabledProperty, value);
}
示例5: SetAutoScrollOnSelection
public static void SetAutoScrollOnSelection(DataGridControl datagrid, bool value)
{
datagrid.SetValue(AutoScrollOnSelectionProperty, value);
}
示例6: SetAllowCurrentWhenNoSelection
public static void SetAllowCurrentWhenNoSelection(DataGridControl dataGrid, bool value)
{
dataGrid.SetValue(AllowCurrentWhenNoSelectionProperty, value);
}
示例7: GetMergedHeaders
public static ObservableCollection<MergedHeader> GetMergedHeaders(DataGridControl dataGrid)
{
var headers = (ObservableCollection<MergedHeader>) dataGrid.GetValue(MergedHeadersProperty);
if (headers == null)
{
headers = new ObservableCollection<MergedHeader>();
dataGrid.SetValue(MergedHeadersProperty, headers);
}
return headers;
}