返回上一頁

Gridview 跨欄置中

GridViewRow head = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert);

TableCell header = new TableCell();

header.Text = "最新10筆";

header.HorizontalAlign = HorizontalAlign.Center;

header.ColumnSpan = 3;

header.BorderWidth = 0;

header.Font.Bold = true;

header.BackColor = System.Drawing.Color.Aqua;

head.Cells.Add(header);

GridViewTop10.Controls[0].Controls.AddAt(0, head);

必須要使用程式控制才行 = = 控件用選的沒得選