示例#1
0
 public static string GetCellValue(string id, GuiGridView gridView, GuiSession session, int row, string column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     return(gridView.GetCellValue(row, column));
 }
示例#2
0
 public static void SelectContextMenuItem(string id, GuiGridView gridView, GuiSession session, string functionCode)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.SelectContextMenuItem(functionCode);
 }
示例#3
0
 public static void DoubleClick(string id, GuiGridView gridView, GuiSession session, int row, string column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.DoubleClick(row, column);
 }
示例#4
0
 public static void SetColumnWidth(string id, GuiGridView gridView, GuiSession session, string column, int width)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.SetColumnWidth(column, width);
 }
示例#5
0
 public static void SelectToolbarMenuItem(string id, GuiGridView gridView, GuiSession session, string menuId)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.SelectToolbarMenuItem(menuId);
 }
示例#6
0
 public static void ModifyCell(string id, GuiGridView gridView, GuiSession session, int row, string column, string value)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.ModifyCell(row, column, value);
 }
示例#7
0
 public static void ContextMenu(string id, GuiGridView gridView, GuiSession session)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.ContextMenu();
 }
示例#8
0
 public static void DeselectColumn(string id, GuiGridView gridView, GuiSession session, String Column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.DeselectColumn(Column);
 }
示例#9
0
 public static void MoveRows(string id, GuiGridView gridView, GuiSession session, int fromrow, int torow, int destRow)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.MoveRows(fromrow, torow, destRow);
 }
示例#10
0
 public static bool IsColumnFiltered(string id, GuiGridView gridView, GuiSession session, string column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     return(gridView.IsColumnFiltered(column));
 }
示例#11
0
 public static void SelectAll(string id, GuiGridView gridView, GuiSession session)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.SelectAll();
 }
示例#12
0
 public static string GetDisplayedColumnTitle(string id, GuiGridView gridView, GuiSession session, String Column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     return(gridView.GetDisplayedColumnTitle(Column));
 }
示例#13
0
 public static string GetColumnTitles(string id, GuiGridView gridView, GuiSession session, String Column)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     return((gridView.GetColumnTitles(Column) as GuiCollection).Item(0));
 }
示例#14
0
 public static void PressToolbarContextButton(string id, GuiGridView gridView, GuiSession session, String ButtonId)
 {
     ValidateGridTarget.ValidateTarget(id, gridView, session);
     if (gridView == null)
     {
         gridView = (GuiGridView)(session).FindById(id);
     }
     gridView.PressToolbarContextButton(ButtonId);
 }