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

C#

 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
Luc Pattyn5-Apr-08 2:23
sitebuilderLuc Pattyn5-Apr-08 2:23 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
SeeBees8-Apr-08 22:31
SeeBees8-Apr-08 22:31 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
mav.northwind5-Apr-08 4:21
mav.northwind5-Apr-08 4:21 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
SeeBees8-Apr-08 22:27
SeeBees8-Apr-08 22:27 
QuestionDatagrid parameter Pin
Gego Levente4-Apr-08 4:05
Gego Levente4-Apr-08 4:05 
GeneralRe: Datagrid parameter Pin
Rick van Woudenberg4-Apr-08 4:40
Rick van Woudenberg4-Apr-08 4:40 
Questionhow to get back and next record from databases Pin
ilu_f94-Apr-08 3:58
ilu_f94-Apr-08 3:58 
AnswerRe: how to get back and next record from databases Pin
Rick van Woudenberg4-Apr-08 4:06
Rick van Woudenberg4-Apr-08 4:06 
Hey,

There are several ways to do this, but the most two common ones are pretty easy actually. You can either write a method that does a new query to the database whenever you want a new record, or you can load the data in a datatable ( my personal favorite ) and iterate through each row in the datatable.

The first method is handy, if you have small amounts of data to transfer each time. You make a new connection, get your stuff, and close the connection. If the network you're on is buggy ( assuming you're not running your database locally ) there might be some lag.

That's why I always use the second method. One connection, get the data, stuff it into a datatable and then work from there, assuming it's read-only data.

Cheers,
Generalrtf and streams Pin
panoskatws4-Apr-08 3:25
panoskatws4-Apr-08 3:25 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 3:34
Rick van Woudenberg4-Apr-08 3:34 
GeneralRe: rtf and streams Pin
panoskatws4-Apr-08 4:20
panoskatws4-Apr-08 4:20 
GeneralRe: rtf and streams Pin
Rick van Woudenberg4-Apr-08 4:53
Rick van Woudenberg4-Apr-08 4:53 
GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 4:54
panoskatws5-Apr-08 4:54 
GeneralRe: rtf and streams Pin
mav.northwind4-Apr-08 23:24
mav.northwind4-Apr-08 23:24 
GeneralRe: rtf and streams Pin
panoskatws5-Apr-08 5:16
panoskatws5-Apr-08 5:16 
GeneralThreading problem Pin
Rick van Woudenberg4-Apr-08 2:53
Rick van Woudenberg4-Apr-08 2:53 
GeneralRe: Threading problem Pin
leppie4-Apr-08 3:42
leppie4-Apr-08 3:42 
GeneralRe: Threading problem Pin
SeeBees4-Apr-08 16:15
SeeBees4-Apr-08 16:15 
GeneralRe: Threading problem Pin
S. Senthil Kumar5-Apr-08 13:56
S. Senthil Kumar5-Apr-08 13:56 
Questionis there a way to restrict possible values of a string param in a method Pin
Adam Harbour4-Apr-08 2:40
Adam Harbour4-Apr-08 2:40 
GeneralRe: is there a way to restrict possible values of a string param in a method Pin
Pete O'Hanlon4-Apr-08 2:50
mvePete O'Hanlon4-Apr-08 2:50 
GeneralWrong data returned! Pin
Graham_44-Apr-08 1:24
Graham_44-Apr-08 1:24 
GeneralPlugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 0:53
Vikas K.4-Apr-08 0:53 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
John_Adams4-Apr-08 1:06
John_Adams4-Apr-08 1:06 
GeneralRe: Plugins for MS Office, Internet explorer using C# Pin
Vikas K.4-Apr-08 1:24
Vikas K.4-Apr-08 1:24 

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.