473,406 Members | 2,217 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,406 software developers and data experts.

Question about GridView control


Hey all,

Having some trouble with the GridView control and the Sorting functionality.

Using an Oracle datasource, we have a SqlDataSource control that uses a SQL
selet statement that contains some Oracle related function calling..

For example:

Select P.person_id,
upper(P.name_last)||upper(P.name_first) sort_field,
P.name_full,
decode(nvl(P.position_id,0),0,null,N.position_desc ) position,
decode(nvl(P.org_id,0),0,null,O.org_name) org,
decode(nvl(P.dept_id,0),0,decode(P.department,null ,null,
P.department),D2.dept_desc) dept,
P.per_phone, P.fax,
decode(nvl(P.owner_dept_id,0),0,null,D1.dept_desc) data_steward
from PERSONS P, DEPT_CODES D1, DEPT_CODES D2,
POSITION_CODES N, ORGANIZATIONS O
where P.owner_dept_id = D1.dept_id
and P.dept_id = D2.dept_id(+)
and P.position_id = N.position_id(+)
and P.org_id = O.org_id(+)
This statement works fine for the selection, but when we sort by one of the
fields that the DECODE function is being used on, it returns null data...

Please help.. thanks..
May 10 '06 #1
1 1050
Where's the code that sets the datasource and such?
May 10 '06 #2

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

Similar topics

3
by: | last post by:
Hello, I have created an ASP.NET 2.0 application that utilized a Gridview Control to display and update/delete data. The problem I am having is that the gridview control is displaying the data...
7
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
1
by: keithb | last post by:
I need help connecting an image button in a GridView control to an event handler. Using the OnCommand property results in the following error: Error 3...
0
by: John Smith | last post by:
ASP.Net 2.0 / C# / IIS 6 I have 2 pages. The master page consists of a tabbed menu created using the Menu and MultiView controls. Something like this: ...
0
by: Terry | last post by:
Developing Environment: Visual Studio 2.0 ASP.NET Question: I have a gridview control inside of a wizard control. I'm having issues accessing the SelectedDataKey.Values("ID AS STRING") of the grid...
1
by: RGF | last post by:
Hi, I have a GridView control which is binded to a dataset object, I am able to populate the GridView with the expected data, so that is ok. I enabled the Selection function from the GridView,...
0
by: Johnny Jörgensen | last post by:
This is probably a stupid question, but I've never used the ASP.NET GridView control before, so I hope you'll bear with me and give me a clue. I've got a Gridview on my webform to show the...
2
by: =?Utf-8?B?UGF1bA==?= | last post by:
HI I have two dropdown boxes that I am populating with results from the database. I can not seem to get them to show up as a row in the grid view control. In addition when the page first loads I...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview control with a template column that has a textbox and when the control is bound to the datasource the textbox is filled ok. I then change what is in the textbox in the gridview...
6
by: ahling | last post by:
Hi, I have a question to ask regarding the gridview control in visual basic 2008. How to bound data to the gridview control? I tried to link the gridview to the sqlsourcedata but after...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.