Grouping problem with postback in SPGridview
Posted
by Abhishek Rao
on Stack Overflow
See other posts from Stack Overflow
or by Abhishek Rao
Published on 2010-05-08T18:04:15Z
Indexed on
2010/05/08
18:08 UTC
Read the original article
Hit count: 530
sharepoint
|ASP.NET
I have a SPGridView with a custom CheckBox Template in it. To access the value of the checkbox I have created the SPGridView in Page_Init method. It was working fine. I also have grouping in the grid. It was working fine till I made any postback in the page. To overcome that I created my own custom GridView and overrided the LoadControlState event. Now the problem is when I use this Custom Grid in my page the LoadControlState event occurs after the Init event and hence the grid doesnt render on the page. When i keep it in Page_Load it works fine but my custom checkbox template creates a problem then. How do I get both the custom Checkbox Template and grouping with postback in the SPGridview working properly???
Please help as this is really getting me stuck.........
© Stack Overflow or respective owner