none
Load Items and Subitems of C# ListView into 2 dimensional Array

    Question

  • hi, I''m working in a 3 layers concept project and i want to transfer the data in a ListView from one layer(PL) to the other(BLL) to save them in the database(DAL),I'm thinking to put the data in array 2 dim by an iteration and transfer the array, if anyone have a better idea or some suggestions I appreciate, thanks anyway. 

    • Moved by CoolDadTxMVP Tuesday, December 08, 2009 2:59 PM WinForms related (From:Visual C# General)
    Tuesday, December 08, 2009 9:59 AM

Answers

  • Hi,

    You can create a class that represents the columns of listview by properties.

    Fill a collection of that class with the data in listview and pass that collection to your layers.
    • Marked as answer by Jing0Moderator Monday, December 14, 2009 9:58 AM
    Tuesday, December 08, 2009 10:04 AM

All replies

  • Hi,

    You can create a class that represents the columns of listview by properties.

    Fill a collection of that class with the data in listview and pass that collection to your layers.
    • Marked as answer by Jing0Moderator Monday, December 14, 2009 9:58 AM
    Tuesday, December 08, 2009 10:04 AM
  • Thanks Tamer Oz

    Tuesday, December 08, 2009 10:35 AM