473,322 Members | 1,307 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,322 software developers and data experts.

SortCommand Problem

Hello all,
I have a problem with SortCommand event.
When i click at a linkbutton with commandname property as "Sort",
the postback is raised, but don't execute SortCommand.

Somebody have any idea?

Thanks.

Dexter
Nov 19 '05 #1
2 1328
It is hard to say without seeing your code. But i will ask if u check
IsPostBack before binding it in page load. First of all page_load event is
fired then the others...

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Dexter" <De****@discussions.microsoft.com> wrote in message
news:45**********************************@microsof t.com...
Hello all,
I have a problem with SortCommand event.
When i click at a linkbutton with commandname property as "Sort",
the postback is raised, but don't execute SortCommand.

Somebody have any idea?

Thanks.

Dexter

Nov 19 '05 #2
Hi Dexter,

If you are talking about DataGrid sorting, the SortCommand
event is triggered by clicking column header Text that is
storable (with SortExpression), rather than clicking any
button. Clicking any button (or linkbutton) in datagrid
will trigger ItemCommand event.

HTH

Elton Wang
el********@hotmail.com

-----Original Message-----
Hello all,
I have a problem with SortCommand event.
When i click at a linkbutton with commandname property as "Sort",the postback is raised, but don't execute SortCommand.

Somebody have any idea?

Thanks.

Dexter
.

Nov 19 '05 #3

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

Similar topics

2
by: Ken Tucker | last post by:
I've read about this issue in many articles across the net... But haven't found a solution. I see all kinds of custom code to perform sorting with datagrids, but my example is so simple, I must...
4
by: Steven | last post by:
Hi there, I am having a weird problem. I have a datagrid with both an ItemCommand and a SortCommand. It was working fine until a day ago. Now, whenever I click a column to fire the...
2
by: John Sturgeon | last post by:
Hello: When creating a dynamic datagrid (i.e. columns are not added until runtime), and enabling allow sorting, the SortCommand event is never fired. Anyone know why or a way around it? This is...
1
by: gerry | last post by:
I have seen many posts regarding a the grid SortCommand even not firing but haven't been able to determine what the problem is. The grid is contained in a UserControl which is added to the page...
0
by: lien | last post by:
In march 23, 04. Steven Cheng showed us how to do sortcommand for datagrid created at run time (thank you) . What if I have mixed static and dynamic columns? that is colunms added into static...
0
by: Paul | last post by:
Hi! When I add a bound column programatically, like: BoundColumn bc = new BoundColumn(); bc.DataField = "myField"; bc.SortExpression = "myField"; myGrid.Columns.Add(bc); the SortCommand...
1
by: James Ramaley | last post by:
I am trying to use the DataGrid SortCommand event, but it is not recognized by the IDE's syntax checker. The same applies for the DataGridSortCommandEventArgs class. All the examples I found are...
1
by: Alex Maghen | last post by:
I have a DataGrid on my ASPX and I'm confused about the interaction with the page based on whether the page is just loading or is being reloaded with a call to the SortCommand of the DataGrid: ...
3
by: Mark Gilkes | last post by:
Hi, I have an aspx page in which I am building a DataGrid control in the code-behind dynamically. The DataGrid is declared along with BoundColumns and bound to the datasource, then added to a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.