TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Boblysan
NA
66
0
Adding items to listview control (Data)
Jun 25 2004 5:07 PM
Good afternoon, I am trying to add items to a list view from an external datasource via an ODBC connection. All of that is working fine. The question I have is ... How can I set up the column headers in my list view ahead of time, then have the items I add in to the list view line up with the columns I have created? I am using ODBC .NET DataReader.read() to read the information from the external datasource. I can successfully do a "while" loop to add all entries from the database in to the list view, I am just having a problem trying to figure out how to use columns. Is there a better way to do this? Also, is there a way to use the DataReader.read() with a DataGrid. Yes, I know there are many methods to use the DataGrid specifically with a DataSet (fill), etc. However, the ODBC connection I am using continues to fail anytime I try to fill a dataset. Any assistance would be very much appreciated. Thank you,
Reply
Answers (
2
)
Control throws error when compiled in release mode. but works nicely when compiled in debug mode.
GetFiles with more than one mask