Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
QuestionDataGridViewImageColumn Pin
e_LA28-Jul-06 4:56
e_LA28-Jul-06 4:56 
AnswerRe: DataGridViewImageColumn Pin
Judah Gabriel Himango28-Jul-06 6:06
sponsorJudah Gabriel Himango28-Jul-06 6:06 
GeneralRe: DataGridViewImageColumn Pin
e_LA30-Jul-06 22:24
e_LA30-Jul-06 22:24 
GeneralRe: DataGridViewImageColumn Pin
Judah Gabriel Himango31-Jul-06 6:02
sponsorJudah Gabriel Himango31-Jul-06 6:02 
GeneralRe: DataGridViewImageColumn Pin
e_LA31-Jul-06 21:31
e_LA31-Jul-06 21:31 
GeneralRe: DataGridViewImageColumn Pin
e_LA31-Jul-06 23:24
e_LA31-Jul-06 23:24 
GeneralIt works Pin
e_LA1-Aug-06 1:26
e_LA1-Aug-06 1:26 
QuestionCombining results of queries problem Pin
coolestCoder28-Jul-06 4:46
coolestCoder28-Jul-06 4:46 
Hi All,
I have a problem combining results of two queries. The queries are fired on the same table with the same select list, only the where condition changes. It would be better if i show what i actually want.


This is my table data for example.

Field1 Field2
AB 1
SD 2
SDFG 3
AS 4
QWE 5
BBG 6


I want an output as

Field1 Field2
AS 4
QWE 5
BBG 6
AB 1
SD 2


That means , if i give the value for Field2 = 3 in the query then the result will not contain record with Field2 = 3 and the result should display the record with Field2 > 3
first and the with Field2 < 3 both sorted in ascending order.

I am using the union operator for combining results, but the results are not as desired. Also i feel that the union clause is not efficient since it takes about 4-6 secs to fetch the records.

Is there any efficient solution for my problem. Please reply soon as i have already spent considerable time on this query and i am running short of time now.

Any help will be appreciable.



Thanks in Advance.



"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder

Anant Y. Kulkarni

AnswerIs there an index on field 2? Pin
Ennis Ray Lynch, Jr.28-Jul-06 4:58
Ennis Ray Lynch, Jr.28-Jul-06 4:58 
GeneralRe: Is there an index on field 2? Pin
coolestCoder28-Jul-06 5:24
coolestCoder28-Jul-06 5:24 
GeneralRe: Is there an index on field 2? Pin
Ennis Ray Lynch, Jr.28-Jul-06 6:37
Ennis Ray Lynch, Jr.28-Jul-06 6:37 
QuestionLIstViewItem.Remove() after label edit throws exception Pin
alekyork28-Jul-06 4:31
alekyork28-Jul-06 4:31 
AnswerRe: LIstViewItem.Remove() after label edit throws exception Pin
Rob Graham28-Jul-06 5:25
Rob Graham28-Jul-06 5:25 
QuestionProblems with state management of the DataGridViewCheckBox. HELP! Pin
LongRange.Shooter28-Jul-06 4:25
LongRange.Shooter28-Jul-06 4:25 
AnswerRe: Problems with state management of the DataGridViewCheckBox. HELP! Pin
Judah Gabriel Himango28-Jul-06 6:05
sponsorJudah Gabriel Himango28-Jul-06 6:05 
GeneralRe: Problems with state management of the DataGridViewCheckBox. HELP! Pin
LongRange.Shooter28-Jul-06 8:41
LongRange.Shooter28-Jul-06 8:41 
QuestionText in a Web Application Pin
orentuil28-Jul-06 3:22
orentuil28-Jul-06 3:22 
AnswerRe: Text in a Web Application Pin
peshawarcoder28-Jul-06 4:19
peshawarcoder28-Jul-06 4:19 
GeneralRe: Text in a Web Application Pin
peshawarcoder28-Jul-06 4:22
peshawarcoder28-Jul-06 4:22 
AnswerRe: Text in a Web Application Pin
peshawarcoder28-Jul-06 4:24
peshawarcoder28-Jul-06 4:24 
AnswerRe: Text in a Web Application Pin
peshawarcoder28-Jul-06 4:29
peshawarcoder28-Jul-06 4:29 
AnswerRe: Text in a Web Application [modified] Pin
BoneSoft28-Jul-06 4:40
BoneSoft28-Jul-06 4:40 
GeneralRe: Text in a Web Application Pin
orentuil29-Jul-06 8:47
orentuil29-Jul-06 8:47 
Question[Message Deleted] Pin
Rahul.RK28-Jul-06 3:08
Rahul.RK28-Jul-06 3:08 
AnswerRe: System Tray Icon Pin
Stefan Troschuetz28-Jul-06 3:16
Stefan Troschuetz28-Jul-06 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.