本文整理汇总了C#中OLVColumn.MakeGroupies方法的典型用法代码示例。如果您正苦于以下问题:C# OLVColumn.MakeGroupies方法的具体用法?C# OLVColumn.MakeGroupies怎么用?C# OLVColumn.MakeGroupies使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OLVColumn
的用法示例。
在下文中一共展示了OLVColumn.MakeGroupies方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MakeColumnFromAttribute
private static OLVColumn MakeColumnFromAttribute(string aspectName, OLVColumnAttribute attr, bool editable) {
string title = String.IsNullOrEmpty(attr.Title) ? aspectName : attr.Title;
OLVColumn column = new OLVColumn(title, aspectName);
column.AspectToStringFormat = attr.AspectToStringFormat;
column.CheckBoxes = attr.CheckBoxes;
column.DisplayIndex = attr.DisplayIndex;
column.FillsFreeSpace = attr.FillsFreeSpace;
if (attr.FreeSpaceProportion.HasValue)
column.FreeSpaceProportion = attr.FreeSpaceProportion.Value;
column.GroupWithItemCountFormat = attr.GroupWithItemCountFormat;
column.GroupWithItemCountSingularFormat = attr.GroupWithItemCountSingularFormat;
column.Hyperlink = attr.Hyperlink;
column.ImageAspectName = attr.ImageAspectName;
if (attr.IsEditableSet)
column.IsEditable = attr.IsEditable;
else
column.IsEditable = editable;
column.IsTileViewColumn = attr.IsTileViewColumn;
column.IsVisible = attr.IsVisible;
column.MaximumWidth = attr.MaximumWidth;
column.MinimumWidth = attr.MinimumWidth;
column.Name = String.IsNullOrEmpty(attr.Name) ? aspectName : attr.Name;
column.Tag = attr.Tag;
column.TextAlign = attr.TextAlign;
column.ToolTipText = attr.ToolTipText;
column.TriStateCheckBoxes = attr.TriStateCheckBoxes;
column.UseInitialLetterForGroup = attr.UseInitialLetterForGroup;
column.Width = attr.Width;
if (attr.GroupCutoffs != null && attr.GroupDescriptions != null)
column.MakeGroupies(attr.GroupCutoffs, attr.GroupDescriptions);
return column;
}