Click here to Skip to main content
15,914,322 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
David Fleming2-Nov-08 21:47
David Fleming2-Nov-08 21:47 
GeneralRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
Pedram Behroozi2-Nov-08 22:15
Pedram Behroozi2-Nov-08 22:15 
AnswerRe: DataGridView ComboBox: Allowing user to type in a value NOT in the Items collection. Pin
Patrick Etc.3-Nov-08 17:02
Patrick Etc.3-Nov-08 17:02 
QuestionProblem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 21:26
Matjaz-xyz2-Nov-08 21:26 
AnswerRe: Problem with checkboxes and click() (newbie) Pin
TommyTomToms2-Nov-08 22:20
TommyTomToms2-Nov-08 22:20 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 22:22
Matjaz-xyz2-Nov-08 22:22 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
TommyTomToms2-Nov-08 22:35
TommyTomToms2-Nov-08 22:35 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 22:37
Matjaz-xyz2-Nov-08 22:37 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
TommyTomToms2-Nov-08 22:52
TommyTomToms2-Nov-08 22:52 
AnswerRe: Problem with checkboxes and click() (newbie) Pin
Pedram Behroozi2-Nov-08 22:47
Pedram Behroozi2-Nov-08 22:47 
GeneralRe: Problem with checkboxes and click() (newbie) Pin
Matjaz-xyz2-Nov-08 23:47
Matjaz-xyz2-Nov-08 23:47 
QuestionHow to Get Network systems hardwares information?? Pin
moharrami2-Nov-08 18:52
moharrami2-Nov-08 18:52 
AnswerRe: How to Get Network systems hardwares information?? Pin
Pedram Behroozi2-Nov-08 20:42
Pedram Behroozi2-Nov-08 20:42 
Questionhow read the prevoius row from the sqldatareader Pin
prasadbuddhika2-Nov-08 18:51
prasadbuddhika2-Nov-08 18:51 
AnswerRe: how read the prevoius row from the sqldatareader Pin
Guffa2-Nov-08 19:05
Guffa2-Nov-08 19:05 
GeneralRe: how read the prevoius row from the sqldatareader Pin
prasadbuddhika2-Nov-08 19:27
prasadbuddhika2-Nov-08 19:27 
GeneralRe: how read the prevoius row from the sqldatareader Pin
_AK_2-Nov-08 20:19
_AK_2-Nov-08 20:19 
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.

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.