Click here to Skip to main content
14,930,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to report progress from Async function Pin
Mou_kol1-May-21 6:42
MemberMou_kol1-May-21 6:42 
AnswerRe: How to report progress from Async function Pin
Eddy Vluggen3-May-21 6:25
professionalEddy Vluggen3-May-21 6:25 
QuestionC# How to speed up for loop with large data iteration Pin
Mou_kol29-Apr-21 2:40
MemberMou_kol29-Apr-21 2:40 
AnswerRe: C# How to speed up for loop with large data iteration Pin
Richard Andrew x6429-Apr-21 2:46
professionalRichard Andrew x6429-Apr-21 2:46 
AnswerRe: C# How to speed up for loop with large data iteration Pin
Richard MacCutchan29-Apr-21 3:07
mveRichard MacCutchan29-Apr-21 3:07 
AnswerRe: C# How to speed up for loop with large data iteration Pin
OriginalGriff29-Apr-21 4:16
mveOriginalGriff29-Apr-21 4:16 
AnswerRe: C# How to speed up for loop with large data iteration Pin
Gerry Schmitz29-Apr-21 9:03
mveGerry Schmitz29-Apr-21 9:03 
GeneralRe: C# How to speed up for loop with large data iteration Pin
jsc4229-Apr-21 22:29
professionaljsc4229-Apr-21 22:29 
I've had similar situations - large (but not a large as this requesters) datasets going to grid views and have timed them. In my cases, issuing the SQL and getting results was quite quick. The delays was filling in and displaying the grid view.

Things to try (which I admit I haven't actually tried in my cases)
* Switch off rendering of the form whilst writing data to the grid view and switch on once all of the grid view has been populated
* Do partial updates (e.g. write 1000 rows, update the UI, append 1000 more rows, update the UI, etc). This would actually slow down the changes but would appear to the user that things were happening and he / she could do some work with the displayed data whilst the rest was being processed. The only way I know of to do partial updates includes using Application.DoEvents which is not a good method; I am sure that someone here could suggest a better way.

OR: Target a subset of the data, Allow the user to request data by whatever criteria is relevant. We (by default) only supply the current day's data. Users soon learn that if they want more, they will have to ask for it (filling in more selection criteria fields), and they will have to wait longer as a consequence.
GeneralRe: C# How to speed up for loop with large data iteration Pin
Gerry Schmitz30-Apr-21 8:22
mveGerry Schmitz30-Apr-21 8:22 
GeneralRe: C# How to speed up for loop with large data iteration Pin
jsc421-May-21 9:42
professionaljsc421-May-21 9:42 
QuestionHow to configure ad hoc network using C# windows form app for windows 10 Pin
Member 1517286227-Apr-21 4:09
MemberMember 1517286227-Apr-21 4:09 
AnswerRe: How to configure ad hoc network using C# windows form app for windows 10 Pin
Gerry Schmitz27-Apr-21 8:02
mveGerry Schmitz27-Apr-21 8:02 
Questionsql server 2019 instances with C # Pin
Member 1407213825-Apr-21 20:50
MemberMember 1407213825-Apr-21 20:50 
AnswerRe: sql server 2019 instances with C # Pin
OriginalGriff25-Apr-21 21:13
mveOriginalGriff25-Apr-21 21:13 
AnswerRe: sql server 2019 instances with C # Pin
Eddy Vluggen26-Apr-21 10:59
professionalEddy Vluggen26-Apr-21 10:59 
Questioncomputer science Pin
A.R ENTERTAIN24-Apr-21 15:17
MemberA.R ENTERTAIN24-Apr-21 15:17 
AnswerRe: computer science Pin
Dave Kreskowiak24-Apr-21 15:42
mveDave Kreskowiak24-Apr-21 15:42 
AnswerRe: computer science Pin
OriginalGriff24-Apr-21 19:14
mveOriginalGriff24-Apr-21 19:14 
AnswerRe: computer science Pin
Gerry Schmitz26-Apr-21 8:59
mveGerry Schmitz26-Apr-21 8:59 
AnswerRe: computer science Pin
SeanChupas26-Apr-21 9:38
MemberSeanChupas26-Apr-21 9:38 
AnswerRe: computer science Pin
Eddy Vluggen26-Apr-21 11:07
professionalEddy Vluggen26-Apr-21 11:07 
AnswerRe: computer science Pin
Mycroft Holmes26-Apr-21 12:17
professionalMycroft Holmes26-Apr-21 12:17 
AnswerRe: computer science Pin
Pete O'Hanlon26-Apr-21 20:54
mvePete O'Hanlon26-Apr-21 20:54 
QuestionMultiple chart display in winforms devexpress Pin
Member 1466381123-Apr-21 13:34
MemberMember 1466381123-Apr-21 13:34 
AnswerRe: Multiple chart display in winforms devexpress Pin
OriginalGriff23-Apr-21 18:56
mveOriginalGriff23-Apr-21 18:56 

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.