Returns the item's row header.
Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public RowHeaderClass RowHeader { get; }
Public ReadOnly Property RowHeader As RowHeaderClassThe row header.
Returns the item's row header.
An instance of the RowHeaderClass class represents one item's row header in a SftTree/NET control. Numerous row header specific properties and methods can be accessed using the returned object.
Certain default properties and behavior for row headers can be defined using the control's SftTree.RowHeaders property.
for (int c = 0; c < sftTree1.Columns.Count; ++c) {
cell = sftTree1.Footers[r, c]; // access each header cell
cell.Text = "Column " + c.ToString(); // set the title
}
}
ItemClass item;
for (int i = 0; i < 10; ++i) {
item = sftTree1.ItemCollection.Add(new string[] { "Text 0", "Text 1", "Text 2", "Text 3" });
item.RowHeader.Text = "Row " + i.ToString();
}
// End of initialization
// In this sample, vertical merging is based on empty subordinate cells.
sftTree1.MergeStyle = MergeStyleEnum.EmptyCells;
// Merge all cells in the column header vertically (in the second column)
For c As Integer = 0 To sftTree1.Columns.Count - 1
cell = sftTree1.Footers(r, c) ' access each header cell
cell.Text = "Column " + c.ToString() ' set the title
Next
Next
Dim item As ItemClass
For i As Integer = 0 To 9
item = sftTree1.ItemCollection.Add(New String() {"Text 0", "Text 1", "Text 2", "Text 3"})
item.RowHeader.Text = "Row " & i.ToString()
Next
' End of initialization
' In this sample, vertical merging is based on empty subordinate cells.
sftTree1.MergeStyle = MergeStyleEnum.EmptyCells
' Merge all cells in the column header vertically (in the second column)See Also ItemClass Class | Classes | SftTree/NET 2.0