Click here to Skip to main content
15,890,845 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: In which language CLR is written?? Pin
Dimitri Witkowski9-Jun-10 10:12
Dimitri Witkowski9-Jun-10 10:12 
QuestionMessage Removed Pin
8-Jun-10 13:06
WilnerCh8-Jun-10 13:06 
AnswerRe: backgroundimage and picturebox Pin
Luc Pattyn8-Jun-10 13:42
sitebuilderLuc Pattyn8-Jun-10 13:42 
QuestionConnecting SQL Server 2005 using ASPNET account Pin
vinothkumar_Dhakshinamoorthy8-Jun-10 4:00
vinothkumar_Dhakshinamoorthy8-Jun-10 4:00 
AnswerRe: Connecting SQL Server 2005 using ASPNET account Pin
Peace ON8-Jun-10 4:12
Peace ON8-Jun-10 4:12 
GeneralRe: Connecting SQL Server 2005 using ASPNET account Pin
vinothkumar_Dhakshinamoorthy8-Jun-10 4:15
vinothkumar_Dhakshinamoorthy8-Jun-10 4:15 
AnswerRe: Connecting SQL Server 2005 using ASPNET account Pin
Peace ON8-Jun-10 4:40
Peace ON8-Jun-10 4:40 
QuestionCode Optimazing Suggestion Pin
Young_Padawan8-Jun-10 1:25
Young_Padawan8-Jun-10 1:25 
Hi. I need some suggestions about the following code. I think it can be improved, but do not know how. Here's a brief explaning, what the code should do:
Actually it's pretty simple, which reads data from a source, sql server 2005, and fill it to a listview. I'm using .net framework 2.0 and programming language is vb.net.

My problem with code is it takes too much to fill listview. Query execution takes only 1 second, but filling result's into listview takes 40 seconds for a result set of 3600 row.

Here's the code which i add a single row into listview. Most of the processor time passes and memory allocation in this single method.

Any suggestion to improve performance inculuding using another objects will help. Thanks for every responses.

Private Sub AddRow2Lvw(ByVal argCls As clsFoo)
    Dim _item As New ListViewItem
    Try
       _item = lvwMyLvw.Items.Add(clsFoo.UserID.ToString, clsFoo.Name, "")
       Call CreateSubItems(_item, lvwMyLvw) 'This method add subitems to listview item, according
                                                to predefined columns

       _item .SubItems(lvwMyLvw.Columns("UserID").Index).Text = clsFoo.UserID
       _item .SubItems(lvwMyLvw.Columns("UserName").Index).Text = clsFoo.UserName
       '..... And lines for other ~15 columns
   Catch ex As Exception
      'Exception code
   End Try


I hope it's clear enough.
AnswerRe: Code Optimazing Suggestion Pin
JHizzle8-Jun-10 2:27
JHizzle8-Jun-10 2:27 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 21:49
Young_Padawan8-Jun-10 21:49 
AnswerRe: Code Optimazing Suggestion Pin
Eddy Vluggen8-Jun-10 2:40
professionalEddy Vluggen8-Jun-10 2:40 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 21:51
Young_Padawan8-Jun-10 21:51 
AnswerRe: Code Optimazing Suggestion Pin
Pete O'Hanlon8-Jun-10 2:41
mvePete O'Hanlon8-Jun-10 2:41 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan8-Jun-10 22:04
Young_Padawan8-Jun-10 22:04 
AnswerRe: Code Optimazing Suggestion Pin
Pete O'Hanlon8-Jun-10 22:15
mvePete O'Hanlon8-Jun-10 22:15 
GeneralRe: Code Optimazing Suggestion Pin
Young_Padawan9-Jun-10 2:25
Young_Padawan9-Jun-10 2:25 
QuestionAny tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation7-Jun-10 12:50
venomation7-Jun-10 12:50 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
Abhinav S7-Jun-10 19:19
Abhinav S7-Jun-10 19:19 
GeneralRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation8-Jun-10 8:49
venomation8-Jun-10 8:49 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
Pete O'Hanlon7-Jun-10 21:30
mvePete O'Hanlon7-Jun-10 21:30 
AnswerRe: Any tips for working over a "Shared Online Folder " (dropbox) using Visual Studio 2010 express? Pin
venomation8-Jun-10 8:50
venomation8-Jun-10 8:50 
QuestionRequired to install MDAC 2.6 Pin
Andraw Tang7-Jun-10 6:47
Andraw Tang7-Jun-10 6:47 
AnswerRe: Required to install MDAC 2.6 Pin
Abhinav S7-Jun-10 19:08
Abhinav S7-Jun-10 19:08 
Questionhow to create animated gif Pin
reza_stb20027-Jun-10 4:48
reza_stb20027-Jun-10 4:48 
AnswerRe: how to create animated gif Pin
dan!sh 7-Jun-10 5:10
professional dan!sh 7-Jun-10 5:10 

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.