本文整理汇总了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;
}