Aspose.Cells.GridWeb.Examples.CSharp.Cells.AccessCells.AccessCellByRowColumnIndex C# (CSharp) Method

AccessCellByRowColumnIndex() private method

private AccessCellByRowColumnIndex ( ) : void
return void
        private void AccessCellByRowColumnIndex()
        {
            // ExStart:AccessCellByRowColumnIndex
            // Accessing the worksheet of the Grid that is currently active
            GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];

            // Accessing "B1" cell of the worksheet using its row and column indices
            GridCell cell = sheet.Cells[0, 1];

            // Display cell name and value
            Label1.Text += "Cell Value of " + cell.Name +" is " + cell.StringValue + "<br/>";
            // ExEnd:AccessCellByRowColumnIndex        
        }
    }