2009-08-25 59 views
3

有點慚愧問這個問題,但是,GridView中DataGrid的Container.DataItem相當於什麼。我不想使用Eval,我不想將它綁定到DataSource控件。我希望能夠在模板字段中執行此操作<%#((MyType)Container.DataItem).MyAttribute %>GridView Container.DataItem?

已解決:沒關係,它實際上工作,我的標記沒有正確關閉aspx頁面。

回答

相關問題