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

C#

 
AnswerRe: strings Pin
Pete O'Hanlon24-Jul-07 10:52
mvePete O'Hanlon24-Jul-07 10:52 
AnswerRe: strings Pin
BoneSoft24-Jul-07 10:52
BoneSoft24-Jul-07 10:52 
AnswerRe: strings Pin
Christian Graus24-Jul-07 10:56
protectorChristian Graus24-Jul-07 10:56 
AnswerBAD USER! Pin
leckey24-Jul-07 16:29
leckey24-Jul-07 16:29 
QuestionProlem in inserting new Row-DB2 Date Time Pin
kidus124-Jul-07 9:59
kidus124-Jul-07 9:59 
AnswerRe: Prolem in inserting new Row-DB2 Date Time Pin
kubben24-Jul-07 10:28
kubben24-Jul-07 10:28 
QuestionInteracting With a Database Pin
max2929724-Jul-07 9:58
max2929724-Jul-07 9:58 
AnswerRe: Interacting With a Database Pin
Pete O'Hanlon24-Jul-07 10:06
mvePete O'Hanlon24-Jul-07 10:06 
Well, you can extract rows into a dataset and then use a foreach on the DataRows. For instance:
foreach (DataRow dr in dsDataset.Tables[0])
{
  // Do something with each row.
}
Alternatively, you can pull the data out with a DataReader and loop through them using:
while (dr.MoveNext())
{
  // Do something here.
}
Note that this is sometimes called a firehose cursor (something you may want to google).

Deja View - the feeling that you've seen this post before.

GeneralRe: Interacting With a Database Pin
max2929724-Jul-07 10:15
max2929724-Jul-07 10:15 
GeneralRe: Interacting With a Database Pin
Pete O'Hanlon24-Jul-07 10:24
mvePete O'Hanlon24-Jul-07 10:24 
GeneralRe: Interacting With a Database Pin
max2929724-Jul-07 10:27
max2929724-Jul-07 10:27 
QuestionRe: Interacting With a Database Pin
max2929724-Jul-07 10:34
max2929724-Jul-07 10:34 
AnswerRe: Interacting With a Database Pin
Christian Graus24-Jul-07 11:23
protectorChristian Graus24-Jul-07 11:23 
QuestionData Binding with CheckBox Pin
Jan Hirak24-Jul-07 9:29
Jan Hirak24-Jul-07 9:29 
Questionloop through a bindingsource Pin
crash89324-Jul-07 9:08
crash89324-Jul-07 9:08 
AnswerRe: loop through a bindingsource Pin
led mike24-Jul-07 9:33
led mike24-Jul-07 9:33 
GeneralRe: loop through a bindingsource Pin
crash89325-Jul-07 4:43
crash89325-Jul-07 4:43 
GeneralRe: loop through a bindingsource Pin
led mike26-Jul-07 4:55
led mike26-Jul-07 4:55 
QuestionBug in Paint event Pin
Oleg Mehechkov24-Jul-07 7:27
Oleg Mehechkov24-Jul-07 7:27 
AnswerRe: Bug in Paint event Pin
Luc Pattyn24-Jul-07 7:47
sitebuilderLuc Pattyn24-Jul-07 7:47 
AnswerRe: Bug in Paint event Pin
Pete O'Hanlon24-Jul-07 10:00
mvePete O'Hanlon24-Jul-07 10:00 
GeneralRe: Bug in Paint event Pin
Oleg Mehechkov25-Jul-07 22:07
Oleg Mehechkov25-Jul-07 22:07 
QuestionGetting frame information from Windows Media Player Pin
Yigal Agam24-Jul-07 7:23
Yigal Agam24-Jul-07 7:23 
QuestionProblem with Log4Net with NHibernate Pin
Iftekhar Naim24-Jul-07 7:01
Iftekhar Naim24-Jul-07 7:01 
AnswerRe: Problem with Log4Net with NHibernate Pin
led mike24-Jul-07 9:30
led mike24-Jul-07 9:30 

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.