populate a listview with data from a datagridview

I have a datagridview that works, but want to use a list view instead.  How can I convert my datagrid view into my listview with .net 2.0 visual basic.
chadmanvbAsked:
Who is Participating?
 
CodeCruiserCommented:
How is the grid being populated? Using a datatable/dataset? Use it as a datasource of the list and set display/value members.
0
 
chadmanvbAuthor Commented:
Actually  I just need to populate a listview from a sql query. That looks like Select * From dbo.Workstations where DateDiff(second, CHECKTIME, getdate()) <= 30.

I need to use that data to populate a listview, but only want to populate 3 columns from the query called SERIAL, NAME,TYPE.
0
 
chadmanvbAuthor Commented:
That worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.