473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

add sorting to a repeater ?

TJS
Any examples or tips on how to add sorting to a repeater column header ?
Nov 19 '05 #1
4 1672
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

"TJS" <no****@here.com> wrote in message
news:us*************@TK2MSFTNGP15.phx.gbl...
Any examples or tips on how to add sorting to a repeater column header ?

Nov 19 '05 #2
TJS
thanks,

but I was wondering not about the query, but how to send the 'asc' or 'desc'
command to the query.
"Jeebu" <je*****@eostek.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

"TJS" <no****@here.com> wrote in message
news:us*************@TK2MSFTNGP15.phx.gbl...
Any examples or tips on how to add sorting to a repeater column header ?


Nov 19 '05 #3
TJS
thanks,

but I was wondering not about the query, but how to send the 'asc' or 'desc'
command to the query.
"Jeebu" <je*****@eostek.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

"TJS" <no****@here.com> wrote in message
news:us*************@TK2MSFTNGP15.phx.gbl...
Any examples or tips on how to add sorting to a repeater column header ?


Nov 19 '05 #4
hi,
after querying database store the result in a dataset and make a view on it
and apply filter

jeebu

"TJS" <no****@here.com> wrote in message
news:er*************@TK2MSFTNGP15.phx.gbl...
thanks,

but I was wondering not about the query, but how to send the 'asc' or 'desc' command to the query.
"Jeebu" <je*****@eostek.com> wrote in message
news:O%****************@tk2msftngp13.phx.gbl...
hi,
its possible.suppose ds is the name of the dataset.
create a view
dataview dv;
dv=ds.tables[0].defaultView;
dv.RowFilter="Name='joan'";
if u want to sort
dv.sort="Name ASC";

grid.datasource=dv;
grid.databind()

cheers
jeebu

"TJS" <no****@here.com> wrote in message
news:us*************@TK2MSFTNGP15.phx.gbl...
Any examples or tips on how to add sorting to a repeater column header ?



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Viktor Popov | last post by:
Hi, I'd like to asky you if it could be accomplished sorting with repeater by column? If yes would you give me an example or link to find out? Thanks! Viktor --- Outgoing mail is...
0
by: Srini | last post by:
Hi everybody, Could you give a sample to implement column sorting with a ASP.NET repeater control. Regards, Srini
2
by: Viktor Popov | last post by:
Hi, I'd like to asky you if it could be accomplished sorting with repeater by column? If yes would you give me an example or link to find out? Thanks! Viktor --- Outgoing mail is...
0
by: mando | last post by:
Hello, I have a repeater to which a dataset was bound. During an ItemCommand event I sorted the dataset and bound it back to the repeater's datasource but I get a runtime error. The error...
1
by: news.microsoft.com | last post by:
<asp:Repeater id="rptCourseDetail2" runat="server" datasource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("CourseDetailRelation") %>' EnableViewState="false" > I am having...
8
by: Matthew Curiale | last post by:
I am creating an app that lists clients of a company for management of different attributes for that company. The first page is a listing of the companies currently in the database. I have my...
1
by: dhnriverside | last post by:
Hi I want to use an Asp:Repeater to create a list of items. I want the list to be 3 columns wide, and order like so... AA AD AG AB AE AH AC AF AI I'm not...
4
by: Andrew Chalk | last post by:
I am displaying a dataset using a Repeater. I would like to allow the user to click on a column header and have the data sort by that column. How do I go about this? Does anyone know of any...
0
by: rameshonweb | last post by:
Does any one has a good site or code for sorting by repeater control using session state?.Thanks in advance
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.