2013-02-19 41 views

回答

0

使用RowsCells屬性:

GridView1.Rows(X).Cells(Y).Text = strEventName 
+0

我想我必須初始化GridView的對象,我嘗試添加「測試」來定位0,0,但我收到的「索引超出範圍。 「錯誤。我如何初始化一個空的4x4 gridView對象? – 2013-02-19 02:32:03

+0

行和單元格屬性具有添加方法。看看http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.tablerow.cells.aspx – shf301 2013-02-19 02:35:29

+0

這隻適用於表對象。我需要爲我的任務使用GridView對象。 – 2013-02-19 03:44:53

相關問題