Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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?
Posted

1 solution

 
Share this answer
 
Comments
Brady Kelly 17-Aug-11 3:21am    
Haha, that was the exact solution I found before you posted this.
Tejas Vaishnav 17-Aug-11 5:30am    
ok
the matter is that the work should go on.. no matter what we done..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900