C# datatable to listview

Posted by Data-Base on Stack Overflow See other posts from Stack Overflow or by Data-Base
Published on 2010-05-04T12:32:50Z Indexed on 2010/05/04 12:38 UTC
Read the original article Hit count: 395

Filed under:
|
|

I like to be able to view datatable in windows form

I managed to get the headers only with ListView how to get the data in there

DataTable data = new DataTable();

data = EnumServices();

//create headers
foreach (DataColumn column in data.Columns)
    {
      listView_Services.Columns.Add(column.ColumnName);
    }

I just want to show now the data in there!

cheers

© Stack Overflow or respective owner

Related posts about c#

Related posts about datatable