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