DataGrid 如何指定 HeaderText
昨天在 TechEd 的會場有一位朋友問了DataGrid 如何指定 HeaderText
由於時間的關係,沒來的及回覆,也忘了留下聯絡資訊,所以先回覆在 blog 上
希望對你所遇到的問題有所幫助
問題:
DataGrid1.Column[1].HeaderText = "MyHeaderText";
執行程式後出現 Index out of range......
(我印象中的問題是這樣)
有關使用 HeaderText 可以參考: