Click here to Skip to main content
15,921,990 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian5-Jun-07 3:39
professionalRajesh R Subramanian5-Jun-07 3:39 
GeneralRe: Adding items to ListView Pin
Tarakeshwar Reddy5-Jun-07 3:43
professionalTarakeshwar Reddy5-Jun-07 3:43 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian5-Jun-07 3:46
professionalRajesh R Subramanian5-Jun-07 3:46 
GeneralRe: Adding items to ListView Pin
Sathesh Sakthivel5-Jun-07 3:37
Sathesh Sakthivel5-Jun-07 3:37 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian5-Jun-07 3:40
professionalRajesh R Subramanian5-Jun-07 3:40 
GeneralRe: Adding items to ListView Pin
Sathesh Sakthivel5-Jun-07 3:42
Sathesh Sakthivel5-Jun-07 3:42 
AnswerRe: Adding items to ListView Pin
S. Senthil Kumar5-Jun-07 4:33
S. Senthil Kumar5-Jun-07 4:33 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian5-Jun-07 19:49
professionalRajesh R Subramanian5-Jun-07 19:49 
S. Senthil Kumar wrote:
That line does not copy the contents, it just makes listView1 refer to whatever lv was referring to. After executing that statement, both listView1 and lv refer to the same object.

Thank you. That explained the problem.


S. Senthil Kumar wrote:
Making listView1 refer to another object by writing listView1 = lv will not change the ListView object in the Controls collection.


How do I copy the state (list view items) of a ListView Object that I have in memory to the object pointed by listView1, which belongs to the Controls collection?

Actually, I am retrieving data from a database and populating a ListView object with it. The UI operation seems to be slow and so I thought I would do it in the memory, and copy all the contents at once. (I miss the UpdateData(false); here. Frown | :( I am an MFC programmer and forgive me if I sound stupid.


Nobody can give you wiser advice than yourself. - Cicero

GeneralRe: Adding items to ListView Pin
S. Senthil Kumar6-Jun-07 4:40
S. Senthil Kumar6-Jun-07 4:40 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian6-Jun-07 18:45
professionalRajesh R Subramanian6-Jun-07 18:45 
QuestionAdding button to datagridview Pin
sulabh20205-Jun-07 2:47
sulabh20205-Jun-07 2:47 
AnswerRe: Adding button to datagridview Pin
Seishin#5-Jun-07 4:11
Seishin#5-Jun-07 4:11 
AnswerRe: Adding button to datagridview Pin
Hesham Yassin6-Jun-07 8:14
Hesham Yassin6-Jun-07 8:14 
QuestionReporting Service MultiLanguage? Pin
ArunkumarSundaravelu5-Jun-07 2:04
ArunkumarSundaravelu5-Jun-07 2:04 
QuestionInternet Explorer Toolbar, tutorial anywere? Pin
Jens R. Nielsen5-Jun-07 1:39
Jens R. Nielsen5-Jun-07 1:39 
AnswerRe: Internet Explorer Toolbar, tutorial anywere? Pin
Jens R. Nielsen6-Jun-07 6:26
Jens R. Nielsen6-Jun-07 6:26 
QuestionExcel worksheet Pin
Ankit Aneja5-Jun-07 1:39
Ankit Aneja5-Jun-07 1:39 
QuestionHow to reopen program automatically Pin
GreenblitZ5-Jun-07 1:36
GreenblitZ5-Jun-07 1:36 
AnswerRe: How to reopen program automatically Pin
CPallini5-Jun-07 1:55
mveCPallini5-Jun-07 1:55 
GeneralRe: How to reopen program automatically Pin
GreenblitZ5-Jun-07 2:30
GreenblitZ5-Jun-07 2:30 
GeneralRe: How to reopen program automatically Pin
Vikram A Punathambekar5-Jun-07 4:06
Vikram A Punathambekar5-Jun-07 4:06 
AnswerRe: How to reopen program automatically Pin
Seishin#5-Jun-07 4:16
Seishin#5-Jun-07 4:16 
QuestionScheduled command line application Pin
weywe47k375-Jun-07 1:32
weywe47k375-Jun-07 1:32 
AnswerRe: Scheduled command line application Pin
CPallini5-Jun-07 2:02
mveCPallini5-Jun-07 2:02 
AnswerRe: Scheduled command line application Pin
thowra5-Jun-07 4:32
thowra5-Jun-07 4:32 

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.