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)); }
public static void DoubleClickCell(this GuiGridView GridView, int row, string FriendlyColumn) { string column = ""; GridView.SelectAll(); foreach (var colName in GridView.SelectedColumns) { string displayCol = GridView.GetDisplayedColumnTitle(colName); if (displayCol.IndexOf(FriendlyColumn) >= 0) { column = colName; break; } } GridView.ClearSelection(); GridView.DoubleClick(row, column); }
public static string GetCell(GuiGridView GridView, int row, string FriendlyColName) { string column = ""; GridView.SelectAll(); foreach (var colName in GridView.SelectedColumns) { string displayCol = GridView.GetDisplayedColumnTitle(colName); if (displayCol.IndexOf(FriendlyColName) >= 0) { column = colName; break; } } GridView.ClearSelection(); return GridView.GetCellValue(row, column); }
public static string GetCellValueByDisplayColumn(this GuiGridView GridView, int row, string FriendlyColName) { string column = ""; GridView.SelectAll(); foreach (var colName in GridView.SelectedColumns) { string displayCol = GridView.GetDisplayedColumnTitle(colName); if (displayCol.IndexOf(FriendlyColName) >= 0) { column = colName; break; } } GridView.ClearSelection(); return(GridView.GetCellValue(row, column)); }