Click here to Skip to main content
15,887,328 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:05
Stephane Rodriguez.3-Nov-02 9:05 
GeneralRe: Best Video Control is... Pin
James T. Johnson3-Nov-02 9:18
James T. Johnson3-Nov-02 9:18 
GeneralRe: Best Video Control is... Pin
Stephane Rodriguez.3-Nov-02 9:35
Stephane Rodriguez.3-Nov-02 9:35 
GeneralXML Dataset and Removing Rows... Pin
hammackj2-Nov-02 18:08
hammackj2-Nov-02 18:08 
GeneralRe: XML Dataset and Removing Rows... Pin
John Fisher4-Nov-02 8:08
John Fisher4-Nov-02 8:08 
GeneralRe: XML Dataset and Removing Rows... Pin
hammackj4-Nov-02 13:35
hammackj4-Nov-02 13:35 
GeneralC# Database question Pin
Anonymous2-Nov-02 14:57
Anonymous2-Nov-02 14:57 
GeneralRe: C# Database question Pin
ian mariano2-Nov-02 15:25
ian mariano2-Nov-02 15:25 
If you use a SqlDataReader, this may help:

//  assumes cmd is a System.Data.SqlCommand object
SqlDataReader r = cmd.ExecuteReader(/* omitted for brevity  */);

while(r.Read())
{
   //  do something with r, like Console.WriteLine(r["field"].Value)
}


As far as part 2, you could use a page Cache of the dataset, and a Repeater control you modify to do the "pagination" The Microsoft .NET Pet Shop 2.0[^] has an example of one of those to paginate data.

-- ian

"The greatest danger to humanity is humanity without an open mind."
  - Ian Mariano - http://www.ian-space.com/

GeneralRe: C# Database question Pin
Munti4-Nov-02 5:48
Munti4-Nov-02 5:48 
Questionprocess id? Pin
imran_rafique2-Nov-02 14:21
imran_rafique2-Nov-02 14:21 
AnswerRe: process id? Pin
Stephane Rodriguez.2-Nov-02 19:15
Stephane Rodriguez.2-Nov-02 19:15 
GeneralRe: process id? Pin
imran_rafique3-Nov-02 15:20
imran_rafique3-Nov-02 15:20 
GeneralRe: process id? Pin
Stephane Rodriguez.3-Nov-02 18:49
Stephane Rodriguez.3-Nov-02 18:49 
GeneralRe: process id? Pin
imran_rafique4-Nov-02 15:00
imran_rafique4-Nov-02 15:00 
GeneralRe: process id? Pin
Stephane Rodriguez.4-Nov-02 18:59
Stephane Rodriguez.4-Nov-02 18:59 
GeneralHttpRequest Pin
kavehdr2-Nov-02 11:30
kavehdr2-Nov-02 11:30 
GeneralRe: HttpRequest Pin
Vasudevan Deepak Kumar5-Nov-02 3:55
Vasudevan Deepak Kumar5-Nov-02 3:55 
GeneralAssembly Pin
kavehdr2-Nov-02 7:46
kavehdr2-Nov-02 7:46 
GeneralRe: Assembly Pin
Daniel Turini2-Nov-02 8:04
Daniel Turini2-Nov-02 8:04 
GeneralRe: Assembly Pin
kavehdr2-Nov-02 8:13
kavehdr2-Nov-02 8:13 
GeneralRe: Assembly Pin
John Fisher2-Nov-02 9:22
John Fisher2-Nov-02 9:22 
GeneralRe: Assembly Pin
ian mariano2-Nov-02 9:59
ian mariano2-Nov-02 9:59 
GeneralRe: Assembly Pin
kavehdr2-Nov-02 11:32
kavehdr2-Nov-02 11:32 
GeneralRe: Assembly Pin
John Fisher2-Nov-02 13:29
John Fisher2-Nov-02 13:29 
GeneralRe: Assembly Pin
ian mariano2-Nov-02 14:17
ian mariano2-Nov-02 14:17 

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.