|
-
Jun 11th, 2008, 11:41 PM
#1
Thread Starter
^:^...ANGEL...^:^
Binding objects to a grid
Hi,
I have a class called let's say "Customer" which has some public properties like ID, FirstName, LastName, DisplayName etc. etc.
So what I normally do is create a generic list (of Customer) type of object and fill it up and then assign the whole thing to a grid.
Obviously the grid shows me ID, FirstName, LastName, DisplayName and remaining public properties it can bind.
What I want to achieve is make a particular property non-bindable (using some sort of attribute). Is this possible?
At the moment I am using Grid's on column added event to make those columns invisible but I would like to make it neat.
Also is it possible to make it bindable but hidden using attributes?
Cheers
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
|