Dategrid filtering and sorting
How can we sort all the fields at once?
Answers were Sorted based on User's Feedback
Answer / ish
By putting the dataset value in dataview and sort that
dataview According the field and for filtering we can use
rowfilter option with dataview . after that we can bind
that dataview value with datagrid.
we can also use sortexpression in datagrid propertybuilder.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pritam
first write one sql query and there include "order by (the
column header of the datagrid what you have used").
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / srividhya.s
Undoubtedly u need to write a sql query for this with the
order by (or) sort by.
And also call the subroutine that fills the datagrid after
each insert or delete so that u can see the changes at the
runtime with the new alignment(i mean sorting)...
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the difference between response.redirect and server.transfer, how to choose one among the other?
How does the cookies work in asp.net?
Where can I get the details on migration of existing projects using various technologies to asp.net?
About delegates ?
Contrast OOP and SOA. What are tenets of each ?
What is the difference between ldap and active directory?
Whats MSIL, and why should my developers need an appreciation of it if at all?
What is web.config and machine.config ?
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
How can we create custom controls in asp net?
What is scope of an application variable in asp.net?
Explain advantages of caching?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)