Spread Windows Forms 11.0 Product Documentation
TableDataRowStyleName Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TableView Class : TableDataRowStyleName Property
Gets or sets style name for the table data area.
Syntax
'Declaration
 
Public Property TableDataRowStyleName As String
'Usage
 
Dim instance As TableView
Dim value As String
 
instance.TableDataRowStyleName = value
 
value = instance.TableDataRowStyleName
public string TableDataRowStyleName {get; set;}
Example
This example sets a style for the data rows.
fpSpread1.Sheets[0].Cells[1, 1].Text = "Last Name";
fpSpread1.Sheets[0].Cells[1, 2].Text = "Value";
fpSpread1.Sheets[0].Cells[2, 1].Text = "Smith";
fpSpread1.Sheets[0].Cells[2, 2].Value = 50;
fpSpread1.Sheets[0].Cells[3, 1].Text = "Vil";
fpSpread1.Sheets[0].Cells[3, 2].Value = 10;
fpSpread1.Sheets[0].Cells[4, 1].Text = "Press";
fpSpread1.Sheets[0].Cells[4, 2].Value = 78;
FarPoint.Win.Spread.TableView table = fpSpread1.Sheets[0].AddTable("table", 1, 1, 5, 2);
table.TableDataRowStyleName = "Style1";
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
si.BackColor = Color.Yellow;
table.TableDataRowStyle = si;
fpSpread1.Sheets(0).Cells(1, 1).Text = "Last Name"
fpSpread1.Sheets(0).Cells(1, 2).Text = "Value"
fpSpread1.Sheets(0).Cells(2, 1).Text = "Smith"
fpSpread1.Sheets(0).Cells(2, 2).Value = 50
fpSpread1.Sheets(0).Cells(3, 1).Text = "Vil"
fpSpread1.Sheets(0).Cells(3, 2).Value = 10
fpSpread1.Sheets(0).Cells(4, 1).Text = "Press"
fpSpread1.Sheets(0).Cells(4, 2).Value = 78
Dim table As FarPoint.Win.Spread.TableView = fpSpread1.Sheets(0).AddTable("table", 1, 1, 5, 2)
table.TableDataRowStyleName = "Style1"
Dim si As New FarPoint.Win.Spread.StyleInfo
si.BackColor = Color.Yellow
table.TableDataRowStyle = si
See Also

Reference

TableView Class
TableView Members