all groups > dotnet windows forms databinding > august 2004 >
You're in the

dotnet windows forms databinding

group:

Bind collection to grid question


Bind collection to grid question mbusfield NO[at]SPAM yahoo.com
8/27/2004 5:29:06 AM
dotnet windows forms databinding: I have a collection of users that i want to bind to a grid.
This works fine if i just set the datasource property of the grid to
my collection.
But, the columns are not in the order i want them and i dont want to
display some of the columns, so for example, if i had the object
'User' as:

id
name
login
email

i would want to display the following:

name | email

Is there a way of specifying if the property in the user object should
be bound (or not) and also is there a way of specifying an order you
want the properties to be bound

Thanks

Re: Bind collection to grid question Miha Markic [MVP C#]
8/27/2004 8:51:22 PM
Hi Malcolm,

Check out GridColumnStyles property. It should give you a chance to
customize them.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

[quoted text, click to view]

AddThis Social Bookmark Button