本文整理汇总了C#中Infragistics.PerformAction方法的典型用法代码示例。如果您正苦于以下问题:C# Infragistics.PerformAction方法的具体用法?C# Infragistics.PerformAction怎么用?C# Infragistics.PerformAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Infragistics
的用法示例。
在下文中一共展示了Infragistics.PerformAction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetQueryGridStyle
public static void SetQueryGridStyle(Infragistics.Win.UltraWinGrid.UltraGrid grid)
{
SetGridReadOnly(grid, true);
grid.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
grid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;
grid.DisplayLayout.Override.SelectTypeCell = SelectType.Extended;
grid.DisplayLayout.Override.SelectTypeCol = SelectType.Extended;
grid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No;
grid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
grid.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
grid.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.Horizontal;
grid.DisplayLayout.NewColumnLoadStyle = NewColumnLoadStyle.Hide;
grid.DisplayLayout.CaptionVisible = DefaultableBoolean.False;
grid.DisplayLayout.Override.BorderStyleCell = UIElementBorderStyle.Dotted;
grid.DisplayLayout.Override.BorderStyleRow = UIElementBorderStyle.Dotted;
grid.DisplayLayout.BorderStyle = UIElementBorderStyle.Solid;
grid.DisplayLayout.Appearance.BackColor = Color.White;
grid.DisplayLayout.Override.CellAppearance.BorderColor = System.Drawing.Color.Silver;
grid.DisplayLayout.Override.RowAppearance.BorderColor = System.Drawing.Color.Silver;
grid.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti;
//Grid cell can be copy to clipboard
grid.DisplayLayout.Override.AllowMultiCellOperations = AllowMultiCellOperation.Copy;
grid.PerformAction(UltraGridAction.Copy);
}
示例2: SetQueryGridStyle
public void SetQueryGridStyle(Infragistics.Win.UltraWinGrid.UltraGrid grid)
{
foreach (UltraGridColumn col in grid.DisplayLayout.Bands[0].Columns)
{
col.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
}
grid.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
grid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;
grid.DisplayLayout.Override.SelectTypeCell = SelectType.Extended;
grid.DisplayLayout.Override.SelectTypeCol = SelectType.Extended;
grid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No;
grid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
grid.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
grid.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.Horizontal;
grid.DisplayLayout.NewColumnLoadStyle = NewColumnLoadStyle.Hide;
// grid.DisplayLayout.CaptionVisible = DefaultableBoolean.False;
grid.DisplayLayout.Appearance.BackColor = Color.White;
grid.DisplayLayout.Override.CellAppearance.BorderColor = System.Drawing.Color.Silver;
grid.DisplayLayout.Override.RowAppearance.BorderColor = System.Drawing.Color.Silver;
// grid.DisplayLayout.Appearance.FontData.SizeInPoints = 10;
grid.DisplayLayout.Bands[0].PerformAutoResizeColumns(true, PerformAutoSizeType.VisibleRows);
grid.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti;
//Grid cell can be copy to clipboard
grid.DisplayLayout.Override.AllowMultiCellOperations = AllowMultiCellOperation.Copy;
grid.PerformAction(UltraGridAction.Copy);
}