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

hosting ascx's inside a datagrid....

Jim
I have derived of DataGrid to give functionality of an expandable dataGrid
(similar to article in October2003 MSDN). I have override the LoadStateView
and SaveStateView to save the extra properties I have added to the derived
class.

It works perfectly fine at expanding and collapse the row that was clicked
on, it displays a web user control (*.ascx) correctly. When the refresh
button is pressed(F5) it refreshes correctly with the expanded row still
expanded and the web user control is displayed.

BUT

the problem is when I click on something inside the web user control
displayed in the expanded dataGrid row the action works fine BUT when the
main page refreshes and the datagrid is redrawn the web user control is not
displayed anymore....

So the question is if I display a web user control in a datagrid by
overriding the 'OnItemCreated' method do I have to do anything specifically
to save the State of the web user control?

If not does anyone no a solution to the problem?

Hope this makes sense....

Cheers

Earth Worm Jim
Nov 17 '05 #1
3 1569
Zi
Jim,
I am having a similar problem with a user control within a data
grid... did you find a solution? if so could you post please:)

Regards,

Zi
Nov 17 '05 #2
Jim
not yet will post when i get a solution

Earth Worm Jim

"Zi" <zi*****@yahoo.com> wrote in message
news:8b**************************@posting.google.c om...
Jim,
I am having a similar problem with a user control within a data
grid... did you find a solution? if so could you post please:)

Regards,

Zi

Nov 17 '05 #3
Jim
Zi

The answer for me was to call Page.DataBind() inside the web user control
(ascx file) when the button click event is fired.

HTH

Earth Worm Jim

"Jim" <ssss> wrote in message news:#S**************@TK2MSFTNGP11.phx.gbl...
not yet will post when i get a solution

Earth Worm Jim

"Zi" <zi*****@yahoo.com> wrote in message
news:8b**************************@posting.google.c om...
Jim,
I am having a similar problem with a user control within a data
grid... did you find a solution? if so could you post please:)

Regards,

Zi


Nov 17 '05 #4

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

Similar topics

2
by: Stephen | last post by:
Hey everyone. I was wondering if someone could help me with a small problem. I have designed a user control and I would have inserted it on a aspz page (WebForm1). The User control is being used to...
6
by: jty202 | last post by:
"Although we do support the ASP.NET Starter Kits, we do not do the installation for you. You can run the installation file locally, then upload the kit. You will not be able to compile on the...
3
by: Jim | last post by:
I have derived of DataGrid to give functionality of an expandable dataGrid (similar to article in October2003 MSDN). I have override the LoadStateView and SaveStateView to save the extra properties...
0
by: Francis | last post by:
Hi all, I am writing a .cs component that sets RegisterHiddenField on the server side and generates javascript to execute on the client side. It works when the component is directly in the...
1
by: Jason Shohet | last post by:
We have some db-search functionality that we need in several asp.net apps. How to get reuse out of this... I was thinking of putting the search criteria, and the datagrid that displays the...
4
by: Chris | last post by:
I have an ASCX (I think thats called a user control), with a public property of "TextStatic". I want to put this ASCX into a datagrid's template item and bind a data sources to the TextStatic...
1
by: rodrigo | last post by:
This is what I am doing public class GridCustomPaging : System.Web.UI.Page { protected System.Web.UI.WebControls.DataGrid DgSearch;
6
by: tshad | last post by:
I have an ascx file I am using to include my logos and heading information for all my pages. It was working fine up until now. I decided to set up an admin folder inside of my main folder and...
2
by: Tina | last post by:
I am accustomed to displaying datagrids in ASPX pages with data in textboxes inside template items. Normally I have an Update button on the form. In the click event of that button I spin through...
4
by: | last post by:
I'm building some user controls. I very much like how you can build custom properties to be bound to a user control, and how instances of that control will show those custom properties in the...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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: 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...
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.