Spread Windows Forms 11.0 Product Documentation
TableDataRowStyle Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > TableView Class : TableDataRowStyle Property
Gets or sets style information for the table data area.
Syntax
'Declaration
 
Public Property TableDataRowStyle As StyleInfo
'Usage
 
Dim instance As TableView
Dim value As StyleInfo
 
instance.TableDataRowStyle = value
 
value = instance.TableDataRowStyle
public StyleInfo TableDataRowStyle {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