Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind a class to a datagrid

Status
Not open for further replies.

Korach

Programmer
Jun 2, 2003
303
0
0
IL
Hi everyone,

I have an arraylist contains some class instances. If I bind the list to a grid, the grid is showing some columns as the number of public properties in the class, and each object gets a row.
I want that only some of the properties will be displayed in the grid. There are some properties that I have to make public but not bindable.
I can do this manually for each grid by hiding the columns, but is there a better way to do it? maybe with a property like <unbindable> on each public property I don't want to show?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top