Click here to Skip to main content
15,891,423 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCan't find column 1 in dataTable that populates dataview then datagrid Pin
AAGTHosting19-Mar-08 11:49
AAGTHosting19-Mar-08 11:49 
GeneralRe: Can't find column 1 in dataTable that populates dataview then datagrid Pin
Dave Kreskowiak19-Mar-08 13:10
mveDave Kreskowiak19-Mar-08 13:10 
GeneralRe: Can't find column 1 in dataTable that populates dataview then datagrid Pin
AAGTHosting19-Mar-08 15:05
AAGTHosting19-Mar-08 15:05 
GeneralRe: Can't find column 1 in dataTable that populates dataview then datagrid Pin
Dave Kreskowiak20-Mar-08 5:01
mveDave Kreskowiak20-Mar-08 5:01 
GeneralRandom records Pin
bapu288919-Mar-08 10:04
bapu288919-Mar-08 10:04 
GeneralRe: Random records Pin
Christian Graus19-Mar-08 10:42
protectorChristian Graus19-Mar-08 10:42 
QuestionRe: Random records Pin
bapu288919-Mar-08 11:07
bapu288919-Mar-08 11:07 
GeneralRe: Random records Pin
Christian Graus19-Mar-08 22:05
protectorChristian Graus19-Mar-08 22:05 
OK, if your IDs are from 0-200, for example, then you need to build a list from 0-200

Then you get a random number between 0 and 200, pull out the number at that location, and get the record with that Id and show it. The next time, the number is between 0 and 199, because there's one less item in the list. You do this, because it means you're pulling at random, but you can never end up with the same record twice.

The other way to do this is to do a random shuffle on your list, you would do that by doing a sort method that returns a random result. Then you can work on the list in sequence.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

QuestionRe: Random records Pin
bapu288919-Mar-08 22:51
bapu288919-Mar-08 22:51 
Generalhiding mapped drive Pin
Cory Kimble19-Mar-08 9:41
Cory Kimble19-Mar-08 9:41 
GeneralRe: hiding mapped drive Pin
Dave Kreskowiak19-Mar-08 10:33
mveDave Kreskowiak19-Mar-08 10:33 
GeneralRe: hiding mapped drive Pin
Cory Kimble19-Mar-08 10:51
Cory Kimble19-Mar-08 10:51 
GeneralRe: hiding mapped drive Pin
Dave Kreskowiak19-Mar-08 11:11
mveDave Kreskowiak19-Mar-08 11:11 
GeneralRe: hiding mapped drive Pin
Cory Kimble24-Mar-08 4:37
Cory Kimble24-Mar-08 4:37 
GeneralRe: hiding mapped drive Pin
Dave Kreskowiak24-Mar-08 10:34
mveDave Kreskowiak24-Mar-08 10:34 
GeneralTwo simple questions I think Pin
cstrader23219-Mar-08 9:02
cstrader23219-Mar-08 9:02 
GeneralRe: Two simple questions I think Pin
Smithers-Jones19-Mar-08 9:17
Smithers-Jones19-Mar-08 9:17 
GeneralRe: Two simple questions I think Pin
cstrader23219-Mar-08 9:51
cstrader23219-Mar-08 9:51 
QuestionI hate reportviewer......isn't there something better!?!? Pin
Tom Wright19-Mar-08 8:45
Tom Wright19-Mar-08 8:45 
AnswerRe: I hate reportviewer......isn't there something better!?!? Pin
Dave Kreskowiak19-Mar-08 10:34
mveDave Kreskowiak19-Mar-08 10:34 
GeneralRe: I hate reportviewer......isn't there something better!?!? Pin
Tom Wright20-Mar-08 4:54
Tom Wright20-Mar-08 4:54 
GeneralRe: I hate reportviewer......isn't there something better!?!? Pin
Dave Kreskowiak20-Mar-08 4:59
mveDave Kreskowiak20-Mar-08 4:59 
AnswerRe: I hate reportviewer......isn't there something better!?!? Pin
darkelv22-Mar-08 18:38
darkelv22-Mar-08 18:38 
QuestionObject synchronization method was called from an unsynchronized block of code. Pin
RJGCarey19-Mar-08 8:07
RJGCarey19-Mar-08 8:07 
GeneralRe: Object synchronization method was called from an unsynchronized block of code. Pin
RJGCarey19-Mar-08 9:01
RJGCarey19-Mar-08 9:01 

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.