如何将组标题行添加到数据绑定的GridView? [英] How can I add group heading rows to a data bound GridView?

查看:86
本文介绍了如何将组标题行添加到数据绑定的GridView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有三个数据绑定列的GridView,如下所示:

I have a GridView with three databound columns, like this:

<columns>
    <asp:BoundField HeaderText="Type" DataField="Type" />
    <asp:BoundField HeaderText="Amenity" DataField="Amenity" />
    <asp:BoundField HeaderText="Distance" DataField="Distance" />
</columns>


记录按类型排序,我想删除类型"列,但是当下一组行的类型值更改时,然后为每种类型插入一个标题行.我该怎么做?


Records are sorted by type, and I want to remove the Type column, but then insert a header row for each type when the value of type for the next set of rows changes. How can I do this?

推荐答案

这对您有帮助吗?

http://www.carlj.ca/2008 /04/20/adding-or-inserting-subheader-rows-into-a-gridview/ [
May this will help you...

http://www.carlj.ca/2008/04/20/adding-or-inserting-subheader-rows-into-a-gridview/[^]


这篇关于如何将组标题行添加到数据绑定的GridView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆