?
Solved

GridView SubHeaders

Posted on 2012-03-15
3
Medium Priority
?
1,573 Views
Last Modified: 2012-08-14
Hi,
I added subheaders to gridview same way as they did in the  below link.
http://www.carlj.ca/2008/04/20/adding-or-inserting-subheader-rows-into-a-gridview/
Please check the above link.
I have two grids on the form.The grids have edit command button.When I click on the edit command in one of the grids the sub headers in the 2nd grid got disappearing.

How can the  subheaders remain stayed in 2nd grid while editing the 1st grid.
Please let me know.

Thanks
0
Comment
Question by:KavyaVS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 2000 total points
ID: 37728968
The article does not address the issue of editing a GridView that has custom sub-headers, but generally it's a matter of re-binding the GridView in the RowEditing event after handling the edit. This would cause the RowDataBound event to run again, which would restore your sub-headers. Referring to the article, you would need to write this inside the RowEditing event after handling the edit:

        this.gdvRestaurants.DataSource = GetRestaurants();
        this.gdvRestaurants.DataBind();
0
 

Author Comment

by:KavyaVS
ID: 37729559
Thanks.It worked.
0
 

Author Closing Comment

by:KavyaVS
ID: 37729563
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question