HighTechTalks DotNet Forums  

Dataview sorting

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Dataview sorting in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ajaykrishna
 
Posts: n/a

Default Dataview sorting - 12-24-2003 , 04:04 AM






Hi,

I am using ASP.NET and Oracle, as database, to develop/migrate a reporting application,. In couple of places, I used dataview sorting of the resultset, returned from Oracle. But I got some ordering problem, after sorting. I am getting records, of columns used in order by clause, having null values at the TOP of sorted resultset. But when I directly query the oracle database with order by clause, I am getting a all the records with null values at the bottom.

Now my question is: How do I get records with null values, of the columns used in order by clause, at the bottom using dataview sort as it is retured from Oracle direct query?

Thanks,
Ajay

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/

Reply With Quote
  #2  
Old   
Cowboy \(Gregory A. Beamer\)
 
Posts: n/a

Default Re: Dataview sorting - 12-24-2003 , 11:22 AM






There are quite a few differences between Oracle and SQL Server, which makes
it a pain to use Oracle in .NET, at times. If the result set is not large,
instead of using DataGrid sorting, write your own that has Oracle sort the
data for you. For proper encapsulation, you can have a routine that helps
with the query or calls the sproc in the right manner.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"ajaykrishna" <ajaykrishna_salugu@-NOSPAM-conseco.com> wrote

Quote:
Hi,

I am using ASP.NET and Oracle, as database, to develop/migrate a reporting
application,. In couple of places, I used dataview sorting of the resultset,
returned from Oracle. But I got some ordering problem, after sorting. I am
getting records, of columns used in order by clause, having null values at
the TOP of sorted resultset. But when I directly query the oracle database
with order by clause, I am getting a all the records with null values at the
bottom.
Quote:
Now my question is: How do I get records with null values, of the columns
used in order by clause, at the bottom using dataview sort as it is retured
from Oracle direct query?
Quote:
Thanks,
Ajay

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest
Community Website: http://www.dotnetjunkies.com/newsgroups/




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.