473,396 Members | 2,013 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,396 software developers and data experts.

sort grid

I need to make my grids sortable when the user clicks a header (I know how to
do use using SQL) but how make the grids columns sorttable when the grids are
populated via a Oracle Stored Procedure?

My grids(9 grids) have 8 columns and all but 2 columns must be sorttable.

can this even be done if so any examples on how to do it?
Nov 18 '05 #1
3 1009
U can do that by setting the AllowSorting Property of the grid to True. And
then attach the appropriate handler to the SortCommand Event.

cheers,
Laiju

"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
I need to make my grids sortable when the user clicks a header (I know how to do use using SQL) but how make the grids columns sorttable when the grids are populated via a Oracle Stored Procedure?

My grids(9 grids) have 8 columns and all but 2 columns must be sorttable.

can this even be done if so any examples on how to do it?

Nov 18 '05 #2
but in using Srored procdures how would it work and do i have to a call a new
routine to bind the grid again?
"Laiju Skaria" wrote:
U can do that by setting the AllowSorting Property of the grid to True. And
then attach the appropriate handler to the SortCommand Event.

cheers,
Laiju

"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
I need to make my grids sortable when the user clicks a header (I know how

to
do use using SQL) but how make the grids columns sorttable when the grids

are
populated via a Oracle Stored Procedure?

My grids(9 grids) have 8 columns and all but 2 columns must be sorttable.

can this even be done if so any examples on how to do it?


Nov 18 '05 #3
u can use the same sp, pass the sortorder as a param and return the records
on the specified sort order..
"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
but in using Srored procdures how would it work and do i have to a call a new routine to bind the grid again?
"Laiju Skaria" wrote:
U can do that by setting the AllowSorting Property of the grid to True. And then attach the appropriate handler to the SortCommand Event.

cheers,
Laiju

"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message news:84**********************************@microsof t.com...
I need to make my grids sortable when the user clicks a header (I know how
to
do use using SQL) but how make the grids columns sorttable when the
grids are
populated via a Oracle Stored Procedure?

My grids(9 grids) have 8 columns and all but 2 columns must be

sorttable.
can this even be done if so any examples on how to do it?


Nov 18 '05 #4

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

Similar topics

4
by: Nhmiller | last post by:
This is directly from Access' Help: "About designing a query When you open a query in Design view, or open a form, report, or datasheet and show the Advanced Filter/Sort window (Advanced...
4
by: Steve B. | last post by:
I have a DataGrid on the left and TextBoxes (TB) on the right. The TB's reflect the contents of the grid cells. Sorting of columns (both thru VS and programmatically) work fine except, when the...
1
by: Das | last post by:
hi, I'm using data grid with allow sort to true. So with user clicks the header of the column the data is sorted by the column. With the help of hittest I know that which column was last sorted...
0
by: Marco Soul | last post by:
Hello, I am not quite sure how achieve this scenario: I have a data grid with column headers not showing in the grid, rather they're being displayed in a placeholder above the grid as link...
4
by: IGotYourDotNet | last post by:
I'm trying to sort my grid and its working halfway, I can only sort the grid once and it puts everything in ASC order (1234555666) and i can't sort it again to display as DESC order (6665554321), ...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
1
by: anterosousa | last post by:
Is there a way I can send a click event to a datagrid. I want to simulate a user clicking on a heading to sort the display.
2
by: tee | last post by:
Hi, How do i sort datagridview programmically, current i have the following code but i keep get the error saying "DataGridView control must be bound to an IBindingList object to be sorted.", ...
2
by: Rick | last post by:
VS 2005/Pro I'm using a DataGridView in a Windows form and allowing the user to sort the columns by clicking on the header column. Is there some method offered by the grid to return back to...
0
by: DBLWizard | last post by:
I posted a message on the topic earlier and thought I had it solved but in testing have found problems. I have a Templated GridView control on a webpage bound to an ObjectDataSource. There are 3...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.