2010-05-12 36 views

回答

0

我不認爲這是可能的使用SPGridView。

從我發現,分組是根據設置SPGridViewRow.HeaderText財產。我想我使用反射器來解決這個問題。

不幸的是,SPGridViewRow是一個密封類。如果你能想出任何方法來解決這個問題,請讓我知道。我能想到的唯一方法就是從GridView繼承並重寫所有的SPGridView功能。

0

你可以嘗試建立在ASP.NET http://www.codeguru.com/columns/vb/article.php/c12647/嵌套gridview的用戶控制和承載在Web部件的用戶控件。

保護覆蓋無效CreateChildControls() { base.CreateChildControls(); 嘗試 this.Controls.Clear(); GridViewWebUserControl = this.Page.LoadControl(「〜/ _controltemplates/WebPart1/GridViewWebUserControl.ascx」); } 趕上(例外五) { ERR = e.Message; }}

相關問題