473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sort Hyperlinks Not Showing Up (ASP.NET 2.0)

Don
In my code I'm dynamically creating a GridView control and binding it to a
DataView object that I create form a DataSet that I get from a web service
call. It seems that no matter what I do I can not get the sort hyperlinks in
the header row to show up. I've set AllowSorting to true and various other
things but no matter what I do I can't get them to show up. Does sorting only
work with the new SqlDataSource and related objects in ASP.NET 2.0 and not
data sources like the DataView object.

Thanks
Nov 19 '05 #1
1 1247
Don
Just to help clarify here's a snippet from the problem code:

protected override void Render(HtmlTextWriter writer)
{
DataView dv = new DataView(_ds.Tables[0]);
_gv = new GridView();
_gv.AllowSorting = true;
_gv.DataSource = dv;
_gv.DataBind();
_gv.RenderControl(writer);
}

When I use this code no matter what properties I seem to set I can not get
the sort hyperlinks in the header row to show up. If I declaratively create a
GridView control it works fine. It's only if I dynamically create the control
as I've done above that I have the problem.

Ideas?

"Don" wrote:
In my code I'm dynamically creating a GridView control and binding it to a
DataView object that I create form a DataSet that I get from a web service
call. It seems that no matter what I do I can not get the sort hyperlinks in
the header row to show up. I've set AllowSorting to true and various other
things but no matter what I do I can't get them to show up. Does sorting only
work with the new SqlDataSource and related objects in ASP.NET 2.0 and not
data sources like the DataView object.

Thanks

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: laura | last post by:
I am writing some code for an intranet and I need to be able to list the files in folders and subfolders and display them in the browser window as with hyperlinks. I've picked up this very...
4
by: Paul | last post by:
Just wondering if there is a way to set up hyperlinks in a drop down list, so each item in the dropdown list navigates to a different page.
5
by: Patrick.O.Ige | last post by:
What are the best ways to hide hyperlinks from visitors? Any ideas
1
by: kidkurious | last post by:
I have a script that will read web file, extract the hyperlinks and sort them in alphabetical order. It works fine, but not the way I want. I want to change the script so that it will extract...
6
by: Les Juby | last post by:
I need to extract records from a database subject to conditions and only thereafter give the users the choice of which fields to sort the results on. In this situation I can't write back to a...
1
by: mattronchetto | last post by:
I allow sorting but the hyperlinks don''t show up. Can anyone tell me why? Matt
3
by: fiefie.niles | last post by:
I would like to save a web page to a file and have the hyperlinks work when I bring the file back up. If the web page has a hyperlink like the following <a href="OurWeb/News/abcFile.htm">, after...
3
by: prinsipe | last post by:
Hi all, what i'm doing is showing/hiding hyperlinks depending on the hyperlink clicked. it is partially working. when i call step1, all hyperlinks are hidden. but then i call step2, single and...
2
by: Nathan | last post by:
I'm trying to use a LocalReport in a ReportViewer and make a couple fields in the report show up as hyperlinks so I can navigate to other pages after running the report. The hyperlinks themselves...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.