| MultiRow Windows Forms > Developer's Guide > Using MultiRow > Cell Types > ButtonCell > Display String (ButtonCell) |
You can display a string in a button cell by setting the string type value in the ButtonCell.Value property (Cell.Value property).
This example creates a button cell with a value.
Imports GrapeCity.Win.MultiRow
Dim buttonCell1 As New ButtonCell()
buttonCell1.Name = "buttonCell1"
buttonCell1.Value = "Test"
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() { buttonCell1 })
GcMultiRow1.RowCount = 10
|
using GrapeCity.Win.MultiRow;
ButtonCell buttonCell1 = new ButtonCell();
buttonCell1.Name = "buttonCell1";
buttonCell1.Value = "Test";
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { buttonCell1 });
gcMultiRow1.RowCount = 10;
|