Click here to Skip to main content
15,900,815 members
Home / Discussions / C#
   

C#

 
GeneralRe: how read the prevoius row from the sqldatareader Pin
Guffa2-Nov-08 21:39
Guffa2-Nov-08 21:39 
GeneralRe: how read the prevoius row from the sqldatareader Pin
Ashfield2-Nov-08 20:21
Ashfield2-Nov-08 20:21 
GeneralRe: how read the prevoius row from the sqldatareader Pin
David Fleming2-Nov-08 21:31
David Fleming2-Nov-08 21:31 
GeneralRe: how read the prevoius row from the sqldatareader Pin
Ashfield2-Nov-08 22:47
Ashfield2-Nov-08 22:47 
GeneralRe: how read the prevoius row from the sqldatareader Pin
Guffa2-Nov-08 21:34
Guffa2-Nov-08 21:34 
GeneralRe: how read the prevoius row from the sqldatareader Pin
prasadbuddhika2-Nov-08 23:06
prasadbuddhika2-Nov-08 23:06 
GeneralRe: how read the prevoius row from the sqldatareader Pin
N a v a n e e t h2-Nov-08 23:17
N a v a n e e t h2-Nov-08 23:17 
GeneralRe: how read the prevoius row from the sqldatareader Pin
Guffa3-Nov-08 6:37
Guffa3-Nov-08 6:37 
prasadbuddhika wrote:
what i need is to read previous data to compare data with previous data.


So, you want the previous data to... eh... use it? Could you be a bit less specific, please? Wink | ;)

If you for example need the previous data in order to only display one of each value, that could be done before you get the data from the database. I.e. instead of:

select Name from SomeTable order by Name

and

if (Name <> PreviousName) ListBox.Items.Add(Name);

you could do:

select distinct Name from SomeTable order by Name

and

ListBox.Items.Add(Name);

This way you would only fetch the data that you actually use from the database, instead of fetching a lot of data only to throw it away. In similar ways you can use the database to group records and calculate things like sum, average, minimum and maximum.

Despite everything, the person most likely to be fooling you next is yourself.

Questionproblem with MSDTC Pin
prasadbuddhika2-Nov-08 18:23
prasadbuddhika2-Nov-08 18:23 
AnswerRe: problem with MSDTC Pin
Ashfield2-Nov-08 20:22
Ashfield2-Nov-08 20:22 
Questionlistview Sorting Pin
vishnukamath2-Nov-08 17:59
vishnukamath2-Nov-08 17:59 
QuestionRemote connection question Pin
Tushar Mahajan2-Nov-08 17:56
Tushar Mahajan2-Nov-08 17:56 
Questioncontrols and thread in C# Pin
dec822-Nov-08 17:33
dec822-Nov-08 17:33 
AnswerRe: controls and thread in C# Pin
N a v a n e e t h2-Nov-08 17:46
N a v a n e e t h2-Nov-08 17:46 
GeneralRe: controls and thread in C# Pin
dec822-Nov-08 23:17
dec822-Nov-08 23:17 
GeneralRe: controls and thread in C# Pin
N a v a n e e t h2-Nov-08 23:27
N a v a n e e t h2-Nov-08 23:27 
AnswerRe: controls and thread in C# Pin
blackjack21502-Nov-08 21:58
blackjack21502-Nov-08 21:58 
GeneralRe: controls and thread in C# Pin
N a v a n e e t h2-Nov-08 22:27
N a v a n e e t h2-Nov-08 22:27 
QuestionSSL between .Net server and Java client Pin
xax2-Nov-08 11:35
xax2-Nov-08 11:35 
AnswerRe: SSL between .Net server and Java client Pin
blackjack21503-Nov-08 0:34
blackjack21503-Nov-08 0:34 
GeneralRe: SSL between .Net server and Java client Pin
xax3-Nov-08 8:35
xax3-Nov-08 8:35 
QuestionMultiline Indent Pin
Caglow2-Nov-08 9:21
Caglow2-Nov-08 9:21 
AnswerRe: Multiline Indent Pin
Pedram Behroozi2-Nov-08 10:03
Pedram Behroozi2-Nov-08 10:03 
GeneralRe: Multiline Indent Pin
Caglow2-Nov-08 11:52
Caglow2-Nov-08 11:52 
GeneralRe: Multiline Indent Pin
Pedram Behroozi2-Nov-08 12:33
Pedram Behroozi2-Nov-08 12:33 

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.