|
-
Jun 29th, 2011, 04:29 AM
#4
Re: ListView.DataSource = DataTable
If you don't want every column from the data source displayed in the grid then you basically have two choices:
1. After binding the grid, hide the column you don;t want shown.
2. Add only the columns you want in the designer and set their DataPropertyName for binding. You then set AutoGenerateColumns to False before binding.
As for the last question, you shouldn't even need to ask it. When you're using a new control, the very first thing you should do is look in the Properties window to see what it can do. If you've done that then you have your answer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|