当前位置: 首页>>代码示例>>C#>>正文


C# GridView.GetDataRowHandleByGroupRowHandle方法代码示例

本文整理汇总了C#中GridView.GetDataRowHandleByGroupRowHandle方法的典型用法代码示例。如果您正苦于以下问题:C# GridView.GetDataRowHandleByGroupRowHandle方法的具体用法?C# GridView.GetDataRowHandleByGroupRowHandle怎么用?C# GridView.GetDataRowHandleByGroupRowHandle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GridView的用法示例。


在下文中一共展示了GridView.GetDataRowHandleByGroupRowHandle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DrawBackground

		public static void DrawBackground(RowObjectCustomDrawEventArgs e, GridView view)
		{
			var painter = e.Painter as GridGroupRowPainter;
			var info = e.Info as GridGroupRowInfo;
			int level = view.GetRowLevel(e.RowHandle);
			int row = view.GetDataRowHandleByGroupRowHandle(e.RowHandle);
			info.GroupText = string.Format("{0}: {1}", view.GroupedColumns[level].Caption,
				view.GetRowCellDisplayText(row, view.GroupedColumns[level]));
			e.Appearance.DrawBackground(e.Cache, info.Bounds);
			painter.ElementsPainter.GroupRow.DrawObject(info);
		}
开发者ID:w01f,项目名称:VolgaTeam.SalesLibrary,代码行数:11,代码来源:GroupSummaryHelper.cs

示例2: SaveSelectionViewInfo

 public void SaveSelectionViewInfo(GridView view)
 {
     SaveSelList.Clear();
     GridColumn column = view.Columns[descriptor.keyFieldName];
     RowInfo rowInfo;
     int[] selectionArray = view.GetSelectedRows();
     if (selectionArray != null)  // otherwise we have a single focused but not selected row
         for (int i = 0; i < selectionArray.Length; i++)
         {
             int dataRowHandle = selectionArray[i];
             rowInfo.level = view.GetRowLevel(dataRowHandle);
             if (dataRowHandle < 0) // group row
                 dataRowHandle = view.GetDataRowHandleByGroupRowHandle(dataRowHandle);
             rowInfo.Id = view.GetRowCellValue(dataRowHandle, column);
             SaveSelList.Add(rowInfo);
         }
     rowInfo.Id = view.GetRowCellValue(view.FocusedRowHandle, column);
     rowInfo.level = view.GetRowLevel(view.FocusedRowHandle);
     SaveSelList.Add(rowInfo);
 }
开发者ID:Solnake,项目名称:kayflow,代码行数:20,代码来源:RefreshHelperClass.cs

示例3: SaveExpansionViewInfo

 public void SaveExpansionViewInfo(GridView view)
 {
     if (view.GroupedColumns.Count == 0) return;
     SaveExpList.Clear();
     GridColumn column = view.Columns[descriptor.keyFieldName];
     for (int i = -1; i > int.MinValue; i--)
     {
         if (!view.IsValidRowHandle(i)) break;
         if (view.GetRowExpanded(i))
         {
             RowInfo rowInfo;
             int dataRowHandle = view.GetDataRowHandleByGroupRowHandle(i);
             rowInfo.Id = view.GetRowCellValue(dataRowHandle, column);
             rowInfo.level = view.GetRowLevel(i);
             SaveExpList.Add(rowInfo);
         }
     }
 }
开发者ID:Solnake,项目名称:kayflow,代码行数:18,代码来源:RefreshHelperClass.cs


注:本文中的GridView.GetDataRowHandleByGroupRowHandle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。