For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Webcontrols > March 2006 > Extending Gridview to handle grouping.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Extending Gridview to handle grouping.
andrew

2006-03-29, 7:05 pm

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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com