本文整理汇总了C#中DevExpress.EndInit方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.EndInit方法的具体用法?C# DevExpress.EndInit怎么用?C# DevExpress.EndInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DevExpress
的用法示例。
在下文中一共展示了DevExpress.EndInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetControl
void SetControl(DevExpress.XtraGrid.GridControl c)
{
c.SuspendLayout();
c.BeginInit();
foreach (DevExpress.XtraGrid.Views.Grid.GridView gv in c.Views)
{
foreach (DevExpress.XtraGrid.Columns.GridColumn col in gv.Columns)
{
col.Caption = rm.GetString(string.Concat(col.Name, ".Caption"), culture);
col.ToolTip = rm.GetString(string.Concat(col.Name, ".ToolTip"), culture);
}
}
c.EndInit();
c.ResumeLayout();
}
示例2: SetControl
void SetControl(DevExpress.XtraGrid.GridControl gridControl)
{
gridControl.SuspendLayout();
gridControl.BeginInit();
foreach (DevExpress.XtraGrid.Views.Grid.GridView gridView in gridControl.Views)
{
if (ui_captionsList_ContainsKey("GroupPanelText"))
{
var v = ui_captionsList_get("GroupPanelText");
gridView.GroupPanelText = v.TextValue;
}
foreach (DevExpress.XtraGrid.Columns.GridColumn gridColumn in gridView.Columns)
{
if (gridColumn.Tag != null)
{
if (!string.IsNullOrEmpty(gridColumn.Tag.ToString().Trim()))
{
if (ui_captionsList_ContainsKey(gridColumn.Tag.ToString()))
{
var v = ui_captionsList_get(gridColumn.Tag.ToString());
gridColumn.Caption = v.TextValue;
gridColumn.ToolTip = v.TooltipValue;
}
}
}
}
}
gridControl.EndInit();
gridControl.ResumeLayout();
}