CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2013
    Posts
    10

    [RESOLVED] Why my list is null c#

    i have a list from a class and i want to show it in a datagriedview.

    this is i made but it doesn´t show the list:

    Code:
    public partial class Configuration : UserControl
    {
        TestInfoClass liste = new TestInfoClass();
    
    
        public Configuration()
        {
            InitializeComponent();
    
            datagridview_Items.DataSource = liste;    // here not work, not show anything        
    
        }
    }
    main Form:

    Code:
    public partial class MainForm : Form
    {
       Configuration list_to_dgv = new Configuration();
       TestInfoClass testInfo = null;
       //code...
       list_to_dgv.seedatagrid(list);
    }
    Last edited by tommylej; April 3rd, 2014 at 07:25 AM.

  2. #2
    Join Date
    Sep 2013
    Posts
    10

    Re: [RESOLVED] Why my list is null c#

    admin please delete this thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured