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

Visual Basic

 
AnswerRe: What is the Visual Basic Code...this is urgent Pin
Joan M24-Aug-12 1:43
professionalJoan M24-Aug-12 1:43 
QuestionRows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke23-Aug-12 11:01
Phoenix Hawke23-Aug-12 11:01 
AnswerRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Dave Kreskowiak23-Aug-12 18:24
mveDave Kreskowiak23-Aug-12 18:24 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke23-Aug-12 18:52
Phoenix Hawke23-Aug-12 18:52 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller23-Aug-12 23:05
Bernhard Hiller23-Aug-12 23:05 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 2:17
Phoenix Hawke27-Aug-12 2:17 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller27-Aug-12 2:34
Bernhard Hiller27-Aug-12 2:34 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 3:02
Phoenix Hawke27-Aug-12 3:02 
Bernhard Hiller wrote:

Also we face sometimes the problem, that a user
selects filter values for the data which would yield too many rows to be shown.
And what do we do there?
We use a threshold for the row count. Of course,
that threshold can be configured. If the row count is more than the threshold, a
warning message will be shown, and the user can decide to continue with the
crazy amount of data (well, he was shown a warning...) or stop to set new filter
values.

Thank you for your reply.

That is indeed a very good suggestion. So how might I put this into pratice? Is there some event within the SqlClient.SqlDataAdapter Class that fires during the execution of the query that tracks the rows returned during execution? Or is this something that is implemented during the loading of the records into the DataGridView? I found that using a For Each statement to load records row by row is very slow and inefficent. Is there another method that can be used to create a way to stop the load after so many records have been loaded into the DataGridView?

Thanks
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Bernhard Hiller27-Aug-12 3:19
Bernhard Hiller27-Aug-12 3:19 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 3:46
Phoenix Hawke27-Aug-12 3:46 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Dave Kreskowiak24-Aug-12 6:33
mveDave Kreskowiak24-Aug-12 6:33 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Phoenix Hawke27-Aug-12 2:30
Phoenix Hawke27-Aug-12 2:30 
GeneralRe: Rows.Clear is not working properly for an Unbound DataGridView in VB.NET 2005 Pin
Dave Kreskowiak27-Aug-12 4:54
mveDave Kreskowiak27-Aug-12 4:54 
Questionhow to block input value from user in inputbox or msgbox? Pin
lukaszo4422-Aug-12 21:56
lukaszo4422-Aug-12 21:56 
AnswerRe: how to block input value from user in inputbox or msgbox? Pin
Eddy Vluggen23-Aug-12 1:19
professionalEddy Vluggen23-Aug-12 1:19 
AnswerKeyboard emulator? Pin
David Mujica23-Aug-12 2:24
David Mujica23-Aug-12 2:24 
Questioncoverters from c# to vb6 Pin
Karthik Chintala22-Aug-12 20:43
Karthik Chintala22-Aug-12 20:43 
AnswerRe: coverters from c# to vb6 Pin
Eddy Vluggen23-Aug-12 1:17
professionalEddy Vluggen23-Aug-12 1:17 
AnswerRe: coverters from c# to vb6 Pin
Dave Kreskowiak23-Aug-12 2:20
mveDave Kreskowiak23-Aug-12 2:20 
QuestionVB Script & file renaming question(s) Pin
puterguy_200022-Aug-12 9:50
puterguy_200022-Aug-12 9:50 
QuestionRe: VB Script & file renaming question(s) Pin
Eddy Vluggen23-Aug-12 1:14
professionalEddy Vluggen23-Aug-12 1:14 
AnswerRe: VB Script & file renaming question(s) Pin
puterguy_200023-Aug-12 5:44
puterguy_200023-Aug-12 5:44 
GeneralRe: VB Script & file renaming question(s) Pin
Eddy Vluggen23-Aug-12 5:53
professionalEddy Vluggen23-Aug-12 5:53 
GeneralRe: VB Script & file renaming question(s) Pin
puterguy_200023-Aug-12 10:01
puterguy_200023-Aug-12 10:01 
QuestionCould not load file or assembly or one of its dependencies. Pin
Karthik Chintala20-Aug-12 23:24
Karthik Chintala20-Aug-12 23: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.