{
private System
private System
public CustomDataGridTableStyle()
{
this
this
this
this
dataGrid
dataGrid
dataGrid
dataGrid
dataGrid
AnchorStyles
this
dataGrid
this
retrieveButton
retrieveButton
retrieveButton
retrieveButton
retrieveButton
retrieveButton
System
this
}
protected void retrieveButton_Click(object sender
{
retrieveButton
這些代碼生成將要使用的DataSet
DataSet ds = CreateDataSet();
CreateStyles(dataGrid);
dataGrid
}
CreateStyles()方法比較有趣
[
From:http://tw.wingwit.com/Article/program/net/201311/15058.html