Aspose.Cells.GridWeb.Examples.CSharp.Cells.ModifyCells.AddStringValue C# (CSharp) Method

AddStringValue() private method

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

            // Accessing "B1" cell of the worksheet
            GridCell cell = sheet.Cells["B1"];

            // Accessing the string value of "B1" cell
            Label1.Text = cell.StringValue;

            // Modifying the string value of "B1" cell
            cell.PutValue("Hello Aspose.Grid");
            // ExEnd:AddCellStringValue
        }