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

Urgent!! DataGrid OnSortCommand not fire if UserControl is added in the ASPX

Dear All Experts

I faced a problem, I had developed a UserControl (just a simple display the
website logo), and added into a ASPX page.
Inside the ASPX, i have a DataGrid control, and it contains OnSortCommand
defined.
However, when I try to sorting the datagrid, no any event is fired up. I
found that if I removed the UserControl from the ASPX page, the
OnSortCommand is executed, if the UserControl is added backed into the ASPX,
the OnSortCommand will not fired up again....

Did you face this problem before and how to solve it?

Thanks
Mar 16 '07 #1
1 2417
I found out the problem
Thanks

"ºa¤Ö" <ºa¤Ö@¦ãÂû³ù.¥Ì¼¶¼g©ó¶l¥ó·s»D:%2****************@T K2MSFTNGP06.phx.gbl...
Dear All Experts

I faced a problem, I had developed a UserControl (just a simple display
the website logo), and added into a ASPX page.
Inside the ASPX, i have a DataGrid control, and it contains OnSortCommand
defined.
However, when I try to sorting the datagrid, no any event is fired up. I
found that if I removed the UserControl from the ASPX page, the
OnSortCommand is executed, if the UserControl is added backed into the
ASPX, the OnSortCommand will not fired up again....

Did you face this problem before and how to solve it?

Thanks


Mar 16 '07 #2

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

Similar topics

0
by: Steve Floyd | last post by:
How can I determine whether the shift key (or control, or alt, etc.) is being held down when a user clicks a data grid's column heading? The DataGrid's OnSortCommand event gets fired when this...
0
by: Marinos Christoforou | last post by:
I have a user control that contains a datagrid. The grid is populated with data from an SQL database and also contains a button column with a push button that when invoked redirects to another page...
0
by: raki | last post by:
Which one is advantageous iframe or usercontrol in aspx pages. in terms of 1. page rendering 2. state management and other things which i fail to mention here * The page should support IE 5 +...
9
by: Anders K. Jacobsen [DK] | last post by:
Hi I have this that adds some usercontrol (UCTodays.ascx) to a placeholder foreach(A a in B){ UCTodays ucline = (UCTodays )LoadControl("UCTodays.ascx");...
1
by: kimberly.walker | last post by:
I have a datagrid on a usercontrol and im using paging the problem is when i click on the second page and select a row it gives me the value of the first page in that specific row. Ive set the...
6
by: p.mc | last post by:
Hi all, I'm having major problems with a userControl which contains a datagrid. My problem concerns data binding. The Page_Load() procedure calls the DataBind procedure to bind the datagrid...
0
by: AdrEsqu | last post by:
Can anybody show me how to display a bitmap impage in a datagrid cell? Code: grid.AddNewRow() GridCell cell = grid.AddNewCell(); cell.Text = ???????????????
2
by: Brock | last post by:
Thanks in advance...I have what seems like it should be a simple thing for a DataGrid. What I'll be using this for is for a user to choose an employee record on the datagrid then hit the detail...
1
by: Sambit123 | last post by:
Hi, This is problem in Pocket PC programing using C#(compact framework).. Can I change the gaps between Cells in DataGrid ? If yes how.... I want to change the font of aparticular Cell when...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.