开发者

how make a GridView with Dynamic Data and Autogenerated Columns show only specific columns

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"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜