|
When TABLESTYLES.COUNT in DATAGRID is greater than 0, the style sheet exists. Similarly, you can also determine the value of GridColumnStyles.Count. Just set the DataSource. Although it can be displayed, it cannot refer to its TableStyle.
Create TableStyle at design time, or execute a sentence:
TableStyle ts = new TableStyle ();
DataGrid1.TableStyles.add (ts); |
|