Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe6-Apr-08 22:24
C-Scharbe6-Apr-08 22:24 
GeneralRe: ListView.SelectedIndexChanged fired too much Pin
mav.northwind7-Apr-08 7:52
mav.northwind7-Apr-08 7:52 
QuestionRe: ListView.SelectedIndexChanged fired too much Pin
C-Scharbe16-Apr-08 4:20
C-Scharbe16-Apr-08 4:20 
QuestionHow to bind a list to a combobox Pin
baranils4-Apr-08 5:21
baranils4-Apr-08 5:21 
AnswerRe: How to bind a list to a combobox Pin
C-Scharbe4-Apr-08 5:39
C-Scharbe4-Apr-08 5:39 
GeneralRe: How to bind a list to a combobox Pin
baranils4-Apr-08 5:59
baranils4-Apr-08 5:59 
GeneralRe: How to bind a list to a combobox Pin
C-Scharbe4-Apr-08 6:04
C-Scharbe4-Apr-08 6:04 
GeneralRe: How to bind a list to a combobox Pin
baranils4-Apr-08 6:20
baranils4-Apr-08 6:20 
GeneralRe: How to bind a list to a combobox Pin
C-Scharbe4-Apr-08 6:37
C-Scharbe4-Apr-08 6:37 
GeneralRe: How to bind a list to a combobox Pin
baranils4-Apr-08 6:54
baranils4-Apr-08 6:54 
AnswerRe: How to bind a list to a combobox Pin
CodingYoshi5-Apr-08 7:25
CodingYoshi5-Apr-08 7:25 
GeneralRe: How to bind a list to a combobox Pin
baranils5-Apr-08 7:56
baranils5-Apr-08 7:56 
QuestionHow to programmatically change text to underlined style in RichTextBox? Pin
SeeBees4-Apr-08 4:32
SeeBees4-Apr-08 4:32 
AnswerRe: How to programmatically change text to underlined style in RichTextBox? Pin
Luc Pattyn4-Apr-08 6:00
sitebuilderLuc Pattyn4-Apr-08 6:00 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
SeeBees4-Apr-08 16:03
SeeBees4-Apr-08 16:03 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
Luc Pattyn4-Apr-08 16:34
sitebuilderLuc Pattyn4-Apr-08 16:34 
GeneralRe: How to programmatically change text to underlined style in RichTextBox? Pin
SeeBees5-Apr-08 0:21
SeeBees5-Apr-08 0:21 
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,

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.