Hi all: I am working on a Dynamic Data project using scaffolding on VS2010, and I make it work very nice with all tables, it shows every table with all 开发者_如何学编程fields, Edit, Insert, view-related-items, etc. But i have some tables with too many fields, i would like to restrict or limit the number of columns to display on some tables. How do I do that? I tried with the Custom pages, specifying the fields I'd like, creating ItemTemplates, DynamicField, and worked fine, showing the columns specified, but then the autogenerated columns, specifically those "View Related-Table-Items", stopped to show themselves... Thanks in advance Pinchete
You can set the grid not to autogenerate colums with this in the markup
AutoGenerateColumns="False"
精彩评论