You can display a string in the label cell by setting a string type value with the LabelCell.Value property (Cell.Value property).
Using the Designer
- Add a label cell type in the row (for example: labelCell1).
- Select labelCell1 and set any string in the labelCell1.Value property using the Properties window.
Using Code
This example creates a label cell and uses the Value property.
[VB]
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
|
[CS]
using GrapeCity.Win.MultiRow;
LabelCell labelCell1 = new LabelCell();
labelCell1.Name = "labelCell1";
labelCell1.Value = "Test";
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { labelCell1 });
gcMultiRow1.RowCount = 10;
|
See Also