TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Lynn Emery
NA
47
56.3k
Sorting data in grid view
Mar 21 2013 5:41 AM
Hi I have a datagrid which has various columns, including customer.
I want the user to select the customer header and the data to then be sorted by customer name alphabetically.
I have added a sort expression to the data grid;
<
asp
:
BoundField
DataField
="Customer"
HeaderText
="Customer"
SortExpression
="Customer"/>
However I get the following error:
The data source does not support sorting with IEnumerable data. Automatic sorting is only supported with DataView, DataTable, and dataSet.
I understand that the problem relates to BLL and DAL file however I am unsure how
to resolve the problem.
Does anyone know a simple solution to ressolve this problem?
Thank you for your help.
Reply
Answers (
1
)
A field or property with the name not found
error "the insert statement conflicted with the foreign key"