What do you mean by 'The ClassID column is not being displayed'? Is it not returning any value or is it not displaying in a grid or some other control? Did you try to step through the code and see if it is returing any value?
This is a Dynamic Data project to which I am relative new to so I do not know where exactly the data binding is taking place. However here is the markup:
Member
18 Points
187 Posts
A Column is not being displayed for two specific roles.
Jul 30, 2013 03:56 AM|mr41971|LINK
The table under scrutiny is the HomeWork table:
Table : Columns
HomeWork: ID, ClassID, SubjectID, HomeWorkDetails, DateHWGiven, DueDate.
The ClassID column is not being displayed for the roles Student and Parent.
Here is the code:
Please tell me what is the problem.
Member
677 Points
240 Posts
Re: A Column is not being displayed for two specific roles.
Jul 30, 2013 10:06 AM|msmk|LINK
What do you mean by 'The ClassID column is not being displayed'? Is it not returning any value or is it not displaying in a grid or some other control? Did you try to step through the code and see if it is returing any value?
Member
18 Points
187 Posts
Re: A Column is not being displayed for two specific roles.
Jul 30, 2013 10:15 AM|mr41971|LINK
The name of the class is not being displayed in the gridview:
Member
677 Points
240 Posts
Re: A Column is not being displayed for two specific roles.
Jul 30, 2013 10:19 AM|msmk|LINK
Can you post the markup for the grid and the code that you use to bind the grid.
Member
18 Points
187 Posts
Re: A Column is not being displayed for two specific roles.
Aug 05, 2013 08:16 AM|mr41971|LINK
This is a Dynamic Data project to which I am relative new to so I do not know where exactly the data binding is taking place. However here is the markup:
Here is the code behind: