Home Search Member List Faq Register Login  
UltimateTabstrip
Sorting GridView in UltimateTabStrip

Thread Starter: imn2008   Started: 06-14-2012 9:36 AM   Replies: 4
 Karamasoft Support Forums » General Discussions » UltimateTabstrip » Sorting GridView in UltimateTabStrip
 Printable Version    « Previous Thread   Next Thread »
  14 Jun 2012, 9:36 AM
imn2008 is not online. Last active: 7/6/2012 8:37:04 AM imn2008

Top 10 Posts
Joined on 03-17-2008
Posts 8
Sorting GridView in UltimateTabStrip

I am trying to do sort on a GridView placed in UltimateTabStrip. Column names are not getting enabled. How to do this. I tried from code also but no success. Please let me know.

Dim gvDetails As GridView = CType(UltimateTabstrip1.FindControl("gvDetails"), GridView)

gvDetails.AllowSorting = True

AddHandler gvDetails.Sorting, AddressOf gvSort

Thank you.


  
  15 Jun 2012, 10:08 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Sorting GridView in UltimateTabStrip
Are the column names getting enabled when you place your GridView outside the tabstrip? Where exactly do you call the above code? In Page_Load event handler?
  
  15 Jun 2012, 10:39 AM
imn2008 is not online. Last active: 7/6/2012 8:37:04 AM imn2008

Top 10 Posts
Joined on 03-17-2008
Posts 8
Re: Sorting GridView in UltimateTabStrip
Yes. Sorting works fine on a gridview placed outside UTS. It is in a sub and called fron page_load and other events also. 
  
  15 Jun 2012, 11:14 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Sorting GridView in UltimateTabStrip
If you send us a self-contained webb having the issue, we can try it in our test environment.
  
  17 Jun 2012, 11:27 AM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Sorting GridView in UltimateTabStrip

You need to set the SortExpression property of the BoundField items of your GridView as follows:

<
asp:BoundField DataField="One" SortExpression="One" HeaderText="One" ItemStyle-HorizontalAlign="center" ItemStyle-Width="150px" />
<
asp:BoundField DataField="Two" SortExpression="Two" HeaderText="Two" ItemStyle-HorizontalAlign="center" ItemStyle-Width="150px" />
<
asp:BoundField DataField="Three" SortExpression="Three" HeaderText="Three" ItemStyle-HorizontalAlign="center" ItemStyle-Width="150px" />


  
 Page 1 of 1 (5 items)
Karamasoft Support Forums » General Discussions » UltimateTabstrip » Sorting GridView in UltimateTabStrip

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.