How to remove related tables from list.aspx in dynamic data
NickName:Karadous Ask DateTime:2012-05-12T00:16:33

How to remove related tables from list.aspx in dynamic data

I'm using ASP.NET Dynamic Data.

  1. When table rows are listed in List.aspx there are columns that show the name of tables that have foreign key to this table. These columns are not a field in table and Dynamic Data generates them automatically. How can I remove them?
  2. How can I remove filters that are shown for each table?

Copyright Notice:Content Author:「Karadous」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/10555061/how-to-remove-related-tables-from-list-aspx-in-dynamic-data

Answers
Ash Machine 2012-05-16T17:51:09

Use Metadata tag DisplayAttribute in System.ComponentModel.DataAnnotations. Here is an example to hide the Category column in a table and do not create a filter:\n\n[Display(Name=\"Categories\", AutoGenerateField=false, AutoGenerateFilter=false)] \npublic object Cats { get; set; }\n",


More about “How to remove related tables from list.aspx in dynamic data” related questions

How to remove related tables from list.aspx in dynamic data

I'm using ASP.NET Dynamic Data. When table rows are listed in List.aspx there are columns that show the name of tables that have foreign key to this table. These columns are not a field in table ...

Show Detail

Customize List.aspx for One Table in ASP Dynamic Data

I have just meticulously followed MS instructions for customising a dynamic data page template for one table. Create the folder CustomPages/MyTable/List.aspx, and copy PageTemplates/List.aspx into...

Show Detail

How to model and load data from related tables using Sqflite

I have two related tables with a foreign key declared in my schema: CREATE TABLE Collection( id INTEGER PRIMARY KEY, name TEXT, start_date INT ); CREATE TABLE Item ( id INTEGER PR...

Show Detail

Dynamic Data one-to-many relationships using non-PK fields: Foreign table List.aspx links use incorrect key for one-to-many relationships

Problem: The urls created between tables with one-to-many relationships are incorrect. How can I fix this? I'm using LINQ to SQL with Dynamic Data. I have two tables: Users and Addresses: * Th...

Show Detail

Scrambling URLS for dynamic data

What is the best method to obfuscate the urls created in Dynamic Data? eg \Products\List.aspx?ProductId=2 could become \Products\List.aspx?x=UHJvZHVjdElkPTI= where "ProductId=2" is base 64 en...

Show Detail

In SQL, how to remove from only 1 table from 2 related tables

I have related tables in SQL (one to many). One is employees table and the other is the record table for day offs, When i want to delete one employee I get the below error in C#: SqlException: The

Show Detail

Add or Remove Dynamic Dependent Select Box data from two mysql tables using jQuery with PHP Ajax

I need complete sample code to Add or Remove Dynamic Dependent Select Box data from two mysql tables using jQuery with PHP Ajax Dependent select data should be come these below tables. And should b...

Show Detail

automatically retrieve data from related tables

I'm working with a database that contains a table called model_meta which contains metadata about all the various models in use by the application. Here is the relevant data structure: CREATE TABLE

Show Detail

ASP.NET Dynamic Data - Filters | how to default filter of users to current user

I am using Dynamic Data Web Entities Application website and need control of the dynamicfilters placed on the PageTemplates/list.aspx page. I have a table using the default PageTemplates/list.aspx...

Show Detail

dynamic data - all option in paging

I'm developing a dynamic data web app. On list.aspx page it has GridViewPager control for paging, it option in drop down list as 10,20,.. rows in a page like that, but it does not an option show al...

Show Detail