|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Extending Gridview to handle grouping.I've been working on a new control that inherits gridview. The
properties are extended to take a grouping parameter. When the gridview binds it is suppose to sort on the grouped field name and add rows whenever the value of this field changes giving the apperance of grouping. What i have works great on a fresh page load but gets all screwed up on postbacks. I've searched all the gridview events and can't seem to find one that allows me to rework the databind on each pageload/postback. I'm curious if anyone has any ideas about this. I've been using the OnRowDataBound event and PerformDataBinding but they are failing me. Any ideas, suggestions where to look, events to use? Maybe i need to consider working from the datasource level? Even though i'd like my new control to work just like the original gridview. Thanks for any input to my adventure. If anyone is interested in seeing source i'd be happy to share. Thanks guys. You might want to take a look at Teemu Keiski's example on gridview
sort grouping, I'm sure you can get some ideas on how to proceed with yours. http://aspadvice.com/blogs/joteke/archive/2006/02/11/15130.aspx Regards, Andy
Problem with User Control and unset references to controls within
row count in inherited GridView control GridView - can't reference value of a non-visible cell?? Use windows control in asp.net 2.0 Re: How to get underlying data of TreeView control? (ASP.NET 2.0) Dynamically created (and selected) radiobuttons fire CheckedChanged event on Postback error in adding user controls at runtime Panel with Header want to create custom control using graphics Design Time Error: Error Rendering Control |
|||||||||||||||||||||||