Re: global generic list

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks. How can I update the LIST once I have updated the values? My target
is to update the database and the list at the same time and then reload my
listview control from LIST.





"Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:e2PwdupCGHA.2036@xxxxxxxxxxxxxxxxxxxxxxx
> Vivek,
>
> You don't necessarily have to make the variable global in scope. You
> could pass the list from one form to another through a property or method
> or public field. However, if you really want, you can just declare the
> list as static and public, and then any type will have access to that.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> "Vivek" <viveks@xxxxxxxxxx> wrote in message
> news:OYatAUpCGHA.312@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> I have created a list<t> for my form that displays data in a listview. I
>> wixh to edit the row with the help of another form and then update the
>> list<t>. How do I declare a global list that I can use on various forms.
>>
>> Thanks
>>
>>
>
>


.



Relevant Pages

  • Re: Checking for blank rows in database - with apologies to Norman Jon
    ... Define a name ("MyDatabase") for the database area, ... Private Sub Worksheet_Change(ByVal Target As Range) ... Dim rng2 As Range ...
    (microsoft.public.excel.programming)
  • Re: database migration
    ... database size ... write rate of source and target database storage subsystems. ... If your downtime window is large enough, simply copy a cold backup set ... online redo logs to target host ...
    (comp.databases.oracle.server)
  • Re: data migration question. source & target tables are the same-
    ... database into another, bigger, more centralized database in order ... 2 fields in each source table record will need to be populated using data items appearing in other tables of the target database. ... (we will be ousting the source table key of SSN, replacing it with a more benign key item). ...
    (comp.databases.oracle.tools)
  • Fundamental problem setting up SCR
    ... I've setup two new mailbox servers (SOURCE and TARGET). ... I've generated over 50 logs on the database on SOURCE but nothing appeared ... a Standby Continuous Replication copy status for storage group 'SOURCE\SG1'. ... The Microsoft Exchange Replication service may be down. ...
    (microsoft.public.exchange.setup)
  • Re: Creating the DataTable objects within a Dataset from the DB itself
    ... Is this SQL Server you plan to target? ... tables to the database by extruding a DataReader from the DataTable (a new ... DataTable objects programatically, ...
    (microsoft.public.dotnet.framework.adonet)