Last post Oct 06, 2010 03:37 AM by sjnaughton
Sep 28, 2010 04:52 AM|jrees|LINK
can someone tell what the best way to remove (or hide) a gridview column is within a custom page?
I dont want to show the link column that is automatically generated as a result of the relationship between the table in question and a parent table.
Sep 28, 2010 06:41 AM|Dharit Utpal Mehta|LINK
Sep 28, 2010 06:42 AM|Dharit Utpal Mehta|LINK
On Button Click event write
Panel1.Visible = false
Sep 28, 2010 06:57 AM|jrees|LINK
thank you for your reply, but how does this hide a gridview COLUMN (and indeed a column that is auto-generated by dynamic data)?
Sep 28, 2010 07:36 AM|Dharit Utpal Mehta|LINK
Autogenerated Columns can be hide by puting
in gridview control.
Sep 28, 2010 08:03 AM|jrees|LINK
but i dont want to stop all the other columns from being auto-generated - that would defeat the entire point of using Dynamic Data
Sep 29, 2010 12:27 PM|jjfrick|LINK
I just implemented this (from Steve's blog) on my site, have a look:
Oct 01, 2010 07:39 AM|jrees|LINK
thanks for your reply - i must admit i am disappointed that so much code is required for what seems to be a simple issue. maybe one for a future release of DD?
Oct 01, 2010 07:56 AM|gold18|LINK
Use Properties to hide the column. Its provide the flexibility
Oct 06, 2010 03:37 AM|sjnaughton|LINK
Hi Jrees, have a look at my article here Dynamic Data - Hiding Columns in selected PageTemplates and if you are using VS2010 & DD4 then A
New Way To Do Column Generation in Dynamic Data 4
Hide Column based on page template