473,625 Members | 3,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sorting columns with repeater

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 certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.
Nov 18 '05 #1
2 4430
Hi Viktor:

What do use as a DataSource? Many of the data sources have an inherent
sorting capability, that is you can Sort an array or add a sorted
DataView on top of a DataTable. Even if you populate the repeater
using a SQL query and a data reader, you could add an ORDER BY clause
to your SQL statement to bring in the records in a sorted order.

--
Scott
http://www.OdeToCode.com

On Tue, 3 Aug 2004 15:59:48 +0300, "Viktor Popov" <vi****@yahoo.c om>
wrote:
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 certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.


Nov 18 '05 #2
Repeaters don't have columns, so I don't understand what you are trying to do. But i'm sure it can be done if you try hard enough. There isn't any built in features of the repeater to accomplish any type of sorting if that is what you are asking.

"Viktor Popov" <vi****@yahoo.c om> wrote in message news:u3******** ******@TK2MSFTN GP10.phx.gbl...
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 certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.729 / Virus Database: 484 - Release Date: 27.7.2004 a.

Nov 18 '05 #3

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

Similar topics

1
5697
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 certified Virus Free.
1
1776
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 troubles trying to sort child records that appear in a repeater..... Above is the code that i use for the BINDIng...
11
2138
by: rkbnair | last post by:
I have created a datagrid in my aspx with the 'AllowSorting' property to true. When clicking on the column header, the page refreshes. However the sorting is not done. Am I missing anything? I populate the data if !postback.
8
4142
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 repeater working, and paging/sorting works, but there is a small bug that I can't seem to figure out. If, for example, I display 5 records per page, the paging function executes fine, and only shows 5 records per page. This is no problem. When I...
19
25448
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to sort columns based on the column header the user has clicked in both Ascending and Descending formats.
1
1837
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 sure how to get this to work. The only way I can think of is to get
2
1373
by: mark4asp | last post by:
This page is currently using a Repeater control to create a table with 6 columns. The first column has 2 ImageButton controls and a common header. How can I do this with a DataGrid ? I need either 7 columns in my DataGrid with a shared column heading for the first two columns OR I need 6 columns with the first DataGrid column showing two small ImageButtons side-by-side. PS: I need to use the DataGrid's ItemDataBound event e.g.
1
2171
by: Ahmed Yasser | last post by:
Hi all, i have a problem with the datagridview sorting, the problem is a bit complicated so i hope i can describe in the following steps: 1. i have a datagridview with two columns (LoginName,UserName) 2. the datagridview sorting is set to automatic, so when i click on the column header is sorts well. 3. i put in an event handler for the CellEndEdit Event, so whenever the user of the program changes the content of a cell in the LoginName...
2
3569
by: Ralf | last post by:
I have a custome request to print a gridview with lots of columns, 31 to be exact. I know how to print out a gridview, done it already for a GV with 6 columns. But, this GV is very wide and will not fit on a page. I looked into using a repeater, but couldn't figure it out. Tried datalists, no luck. Does anybody have an idea of how I can output the data where it will print. It doesn't have to output into a gridview, I just need it...
0
8256
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8694
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8356
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6118
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.