GrapeCity MultiRow Windows Forms Documentation
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).

Using the Designer

  1. Add a button cell type to the row (for example: buttonCell1).
  2. Select buttonCell1 and set any string in the buttonCell1.Value property through the Properties window.

Using Code

This example creates a button cell with a value.

[VB]

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

[CS]

using GrapeCity.Win.MultiRow;

ButtonCell buttonCell1 = new ButtonCell();
buttonCell1.Name = "buttonCell1";
buttonCell1.Value = "Test";

gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { buttonCell1 });
gcMultiRow1.RowCount = 10;
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options