Try setting the Datasource

On Sun, Sep 7, 2008 at 4:17 PM, Sebastian <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I am new to C# and I could not find an answer to a problem concerning
> list views (probably, because I did not search for the right
> keywords).
>
> I have two listviews on different tabPages of a tabControl in a
> Windows Forms form. I would like to having them shown exactly the same
> content.
>
> One way to do this, is to change the items of both listviews at a time
> upon a change in the underlying data. So I could add the same data to
> both listViews by doing:
>
> listView1.Items.Add(listviewitem)
> listView2.Items.Add(listviewitem)
>
> I was wondering, if there is a more efficient way. Ideally I would
> like to be able to set a pointer (or something similar) from both
> listViews to one object (e.g. a ListViewItemCollection) containing the
> data, which I want to present in the views. Then I would only change
> that object and both ListViews would show the updated data.
>
> Could somebody be so kind to point me to a way to do this? Many
> thanks!
>
> Cheers, Sebastian
>
> >
>


-- 
My Web Site
http://everlovingyouth.googlepages.com
My Technical Blog
http://acutedeveloper.blogspot.com
Skype :santhoshnta
Orkut :everlovingyouth

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to