private CUITControls.SilverlightCell GetCell(int rowIndex, int columnIndex) { WaitForControlReadyIfNecessary(); CUITControls.SilverlightCell _SlCell = null; int rowCount = -1; foreach (CUITControls.SilverlightRow cont in SourceControl.Rows) { rowCount++; if (rowCount == rowIndex) { int colCount = -1; foreach (CUITControls.SilverlightCell cell in cont.Cells) { colCount++; if (colCount == columnIndex) { _SlCell = cell; break; } } } if (_SlCell != null) { break; } } return(_SlCell); }
private CUITControls.SilverlightCell GetCell(int iRow, int iCol) { SourceControl.WaitForControlReady(); CUITControls.SilverlightCell _SlCell = null; int rowCount = -1; foreach (CUITControls.SilverlightRow cont in SourceControl.Rows) { rowCount++; if (rowCount == iRow) { int colCount = -1; foreach (CUITControls.SilverlightCell cell in cont.Cells) { colCount++; if (colCount == iCol) { _SlCell = cell; break; } } } if (_SlCell != null) { break; } } return(_SlCell); }
public string GetCellValue(int iRow, int iCol) { string sResult = ""; CUITControls.SilverlightCell _SlCell = GetCell(iRow, iCol); if (_SlCell != null) { sResult = _SlCell.Value; } return(sResult); }
/// <summary> /// Gets the value of the cell with specified row and column index. /// </summary> /// <param name="rowIndex">Index of the row.</param> /// <param name="columnIndex">Index of the column.</param> /// <returns>The value of the cell with specified row and column index.</returns> public string GetCellValue(int rowIndex, int columnIndex) { CUITControls.SilverlightCell cell = GetCell(rowIndex, columnIndex); return(cell != null ? cell.Value : string.Empty); }