且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过对行进行分组来在网格视图中显示数据。

更新时间:2023-11-26 10:44:58





试试DevExpress网格



https://demos.devexpress.com/ASPxGridViewDemos/GroupingSorting/Grouping.aspx [ ^ ]


您好,



您可以使用第三方控件将是不错的选择,但如果您仍想坚持使用Asp.net gridview,那么您可能可以格式化该格式的数据表并将其绑定到数据源。



或者您可以使用内部gridview并绑定Rowdatabound事件中的每个内部控件。



希望这会对您有所帮助
Hi,

You can use a third party controls that will be good option but if you still want to stick with Asp.net gridview, then probably you can format the datatable in that format and bind it to the data source.

Or you can use inner gridview and bind each inner control in Rowdatabound event.

Hope this will help you