Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionshow/hide datagridview rows by setting trackbar value Pin
bezkintos2-Feb-12 14:09
bezkintos2-Feb-12 14:09 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn2-Feb-12 15:07
sitebuilderLuc Pattyn2-Feb-12 15:07 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos3-Feb-12 11:51
bezkintos3-Feb-12 11:51 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
Alan N3-Feb-12 13:01
Alan N3-Feb-12 13:01 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos3-Feb-12 14:43
bezkintos3-Feb-12 14:43 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn4-Feb-12 3:30
sitebuilderLuc Pattyn4-Feb-12 3:30 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos4-Feb-12 6:22
bezkintos4-Feb-12 6:22 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn4-Feb-12 6:43
sitebuilderLuc Pattyn4-Feb-12 6:43 
Hi again,

1.
don't do Dim min As String, the minimum value IS a number, so keep it a number. Always try and use the most appropriate data type. Strings exist for humans (to visualize data that probably is not textual at all), not for computers.

2.
C# automatically applies .ToString() when you write a concatenation, as in "text"+number, it treats that like "text"+number.ToString()
As VB.NET doesn't do that, you have to add an explicit .ToString()

3.
My approach works on the DataTable where the "Long" column contains numbers, therefore the filtering is done based on numbers, not strings (even when you pass the minimum value as a string to the BindingSource); yours had just a DGV with two TextBoxColumns, and whatever sits in a TextBox is a string, so it was converting every TextBox's content to a number in order to do the comparison.

4.
It makes no sense to me to have 50,000 rows in a DGV, noone is interested in browsing such a list. Apply a filter, apply pagination, or any other scheme that limits the amount of data presented to the user, so things stay small and agile. Example: this web page only shows 10 or 100 messages, not the full million of messages CP is currently holding in its database.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.


modified 4-Feb-12 13:06pm.

GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos4-Feb-12 7:51
bezkintos4-Feb-12 7:51 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn4-Feb-12 8:02
sitebuilderLuc Pattyn4-Feb-12 8:02 
GeneralRe: show/hide datagridview rows by setting trackbar value Pin
bezkintos4-Feb-12 8:34
bezkintos4-Feb-12 8:34 
AnswerRe: show/hide datagridview rows by setting trackbar value Pin
Luc Pattyn4-Feb-12 9:19
sitebuilderLuc Pattyn4-Feb-12 9:19 
Questionhaving trouble replacing Trademark and Registered symbol with Regex Pin
David Mujica2-Feb-12 6:18
David Mujica2-Feb-12 6:18 
AnswerRe: having trouble replacing Trademark and Registered symbol with Regex Pin
Luc Pattyn2-Feb-12 9:05
sitebuilderLuc Pattyn2-Feb-12 9:05 
QuestionADO.net Pin
Amanjot1-Feb-12 12:09
Amanjot1-Feb-12 12:09 
AnswerRe: ADO.net Pin
Eddy Vluggen1-Feb-12 12:21
professionalEddy Vluggen1-Feb-12 12:21 
QuestionCreate a unique Id for each row of table Pin
Seema Bawa1-Feb-12 8:19
Seema Bawa1-Feb-12 8:19 
AnswerRe: Create a unique Id for each row of table Pin
Simon_Whale1-Feb-12 12:16
Simon_Whale1-Feb-12 12:16 
JokeRe: Create a unique Id for each row of table Pin
Eddy Vluggen1-Feb-12 12:30
professionalEddy Vluggen1-Feb-12 12:30 
GeneralRe: Create a unique Id for each row of table Pin
Simon_Whale1-Feb-12 21:58
Simon_Whale1-Feb-12 21:58 
AnswerRe: Create a unique Id for each row of table Pin
RobCroll1-Feb-12 16:14
RobCroll1-Feb-12 16:14 
QuestionCreate a unique Id for Rows Pin
Seema Bawa1-Feb-12 7:58
Seema Bawa1-Feb-12 7:58 
AnswerRe: Create a unique Id for Rows Pin
Eddy Vluggen1-Feb-12 8:16
professionalEddy Vluggen1-Feb-12 8:16 
QuestionOptional parameters cannot have structure types Pin
Clark Kent1231-Feb-12 5:53
professionalClark Kent1231-Feb-12 5:53 
AnswerRe: Optional parameters cannot have structure types Pin
Eddy Vluggen1-Feb-12 6:34
professionalEddy Vluggen1-Feb-12 6:34 

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.