|
|
|
start date: Wed, 08 Aug 2007 20:44:46 -0000,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
SatishPasala
|
|
2
David Wier
|
|
3
SatishPasala
|
|
4
David Wier
|
|
5
SatishPasala
|
|
6
unknown
|
|
7
SatishPasala
|
Datagrid blank on postback.
Hi
I tried all the things I know am out of ideas now. Can you guys help
me out with this?
I have 4 grids on a page with I load on the Page_Load event. One of
the grids has paging. When I move to different page on one of the
grids, all the other Grids loose data on on postback.
I am binding all the grids on the Page_Load event of the page the
grids are in for each postback.
Does any one have any idea what I am missing?
satish
Date:Wed, 08 Aug 2007 20:44:46 -0000
Author:
|
Re: Datagrid blank on postback.
Which version of DotNet are you using?
Are you using custom paging?
If so, they're not using the same event handlers, are they?
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"SatishPasala" wrote in message
news:1186605886.841757.231310@q3g2000prf.googlegroups.com...
> Hi
>
> I tried all the things I know am out of ideas now. Can you guys help
> me out with this?
>
> I have 4 grids on a page with I load on the Page_Load event. One of
> the grids has paging. When I move to different page on one of the
> grids, all the other Grids loose data on on postback.
>
> I am binding all the grids on the Page_Load event of the page the
> grids are in for each postback.
>
> Does any one have any idea what I am missing?
>
> satish
>
Date:Wed, 8 Aug 2007 16:14:57 -0500
Author:
|
Re: Datagrid blank on postback.
I am using .NET 1.1. I am not using custom paging. I debugged through
the code.
I see the dataview is assigned to the datasource of the DataGrid and
BindData() method being called.
I dont see the data in the grid except for the headers. I also
confirmend that there is data in the dataview that is being assigned.
I am not able to pin point where the error is.
The datagrid is in a user control. If it makes any difference.
satish
On Aug 8, 5:14 pm, "David Wier"
wrote:
> Which version of DotNet are you using?
> Are you using custom paging?
> If so, they're not using the same event handlers, are they?
>
> David Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF, convert .doc/.rtf/.txt to HTML with no
> bloated markup
>
> "SatishPasala" wrote in message
>
> news:1186605886.841757.231310@q3g2000prf.googlegroups.com...
>
> > Hi
>
> > I tried all the things I know am out of ideas now. Can you guys help
> > me out with this?
>
> > I have 4 grids on a page with I load on the Page_Load event. One of
> > the grids has paging. When I move to different page on one of the
> > grids, all the other Grids loose data on on postback.
>
> > I am binding all the grids on the Page_Load event of the page the
> > grids are in for each postback.
>
> > Does any one have any idea what I am missing?
>
> > satish
Date:Wed, 08 Aug 2007 21:23:17 -0000
Author:
|
Re: Datagrid blank on postback.
Since you're saying the DataGrid is in a User control, you have 4 user
controls on the page, each of which has a DataGrid in it, right?
Do the datagrids share any information with one another (do any of them rely
on one or more of the others)?
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
"SatishPasala" wrote in message
news:1186608197.785287.278590@x35g2000prf.googlegroups.com...
>I am using .NET 1.1. I am not using custom paging. I debugged through
> the code.
>
> I see the dataview is assigned to the datasource of the DataGrid and
> BindData() method being called.
>
> I dont see the data in the grid except for the headers. I also
> confirmend that there is data in the dataview that is being assigned.
>
> I am not able to pin point where the error is.
>
> The datagrid is in a user control. If it makes any difference.
>
> satish
>
>
> On Aug 8, 5:14 pm, "David Wier"
> wrote:
>> Which version of DotNet are you using?
>> Are you using custom paging?
>> If so, they're not using the same event handlers, are they?
>>
>> David Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF,
>> convert .doc/.rtf/.txt to HTML with no
>> bloated markup
>>
>> "SatishPasala" wrote in message
>>
>> news:1186605886.841757.231310@q3g2000prf.googlegroups.com...
>>
>> > Hi
>>
>> > I tried all the things I know am out of ideas now. Can you guys help
>> > me out with this?
>>
>> > I have 4 grids on a page with I load on the Page_Load event. One of
>> > the grids has paging. When I move to different page on one of the
>> > grids, all the other Grids loose data on on postback.
>>
>> > I am binding all the grids on the Page_Load event of the page the
>> > grids are in for each postback.
>>
>> > Does any one have any idea what I am missing?
>>
>> > satish
>
>
Date:Wed, 8 Aug 2007 16:47:53 -0500
Author:
|
Re: Datagrid blank on postback.
All of them have different information from different sources. They
are independent grids and do not share any information. I have paging
enabled in one grid. That particular grid works fine when I page to
different pages. For the first time !IsPostBack all the grids display
data properly. They only go blank when I click on a different page on
the datagrid.
Studio 2003 has a tendency to remove the event registrations in
InitializeComponent() method. I checked this method too to make sure
the event registrations are present.
satish
On Aug 8, 5:47 pm, "David Wier"
wrote:
> Since you're saying the DataGrid is in a User control, you have 4 user
> controls on the page, each of which has a DataGrid in it, right?
>
> Do the datagrids share any information with one another (do any of them rely
> on one or more of the others)?
>
> David Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF, convert .doc/.rtf/.txt to HTML with no
> bloated markup
>
> "SatishPasala" wrote in message
>
> news:1186608197.785287.278590@x35g2000prf.googlegroups.com...
>
> >I am using .NET 1.1. I am not using custom paging. I debugged through
> > the code.
>
> > I see the dataview is assigned to the datasource of the DataGrid and
> > BindData() method being called.
>
> > I dont see the data in the grid except for the headers. I also
> > confirmend that there is data in the dataview that is being assigned.
>
> > I am not able to pin point where the error is.
>
> > The datagrid is in a user control. If it makes any difference.
>
> > satish
>
> > On Aug 8, 5:14 pm, "David Wier"
> > wrote:
> >> Which version of DotNet are you using?
> >> Are you using custom paging?
> >> If so, they're not using the same event handlers, are they?
>
> >> David Wierhttp://aspnet101.comhttp://iWritePro.com-One click PDF,
> >> convert .doc/.rtf/.txt to HTML with no
> >> bloated markup
>
> >> "SatishPasala" wrote in message
>
> >>news:1186605886.841757.231310@q3g2000prf.googlegroups.com...
>
> >> > Hi
>
> >> > I tried all the things I know am out of ideas now. Can you guys help
> >> > me out with this?
>
> >> > I have 4 grids on a page with I load on the Page_Load event. One of
> >> > the grids has paging. When I move to different page on one of the
> >> > grids, all the other Grids loose data on on postback.
>
> >> > I am binding all the grids on the Page_Load event of the page the
> >> > grids are in for each postback.
>
> >> > Does any one have any idea what I am missing?
>
> >> > satish
Date:Wed, 08 Aug 2007 22:01:03 -0000
Author:
|
Re: Datagrid blank on postback.
your paging logic might be repeated?
So if you go to page 2 on AAA.aspx, then go to BBB.aspx the grid looks
for page 2 but only has page 1. happens when you use common session
variables. Try using a ViewState variable instead.
Just a guess.
Date:Wed, 08 Aug 2007 15:58:25 -0700
Author:
|
Re: Datagrid blank on postback.
All the girds are on one page. Paging is referenced to datagrid
paging. I am loosing data on the postback.
satish
On Aug 8, 6:58 pm, tomisaro...@gmail.com wrote:
> your paging logic might be repeated?
>
> So if you go to page 2 on AAA.aspx, then go to BBB.aspx the grid looks
> for page 2 but only has page 1. happens when you use common session
> variables. Try using a ViewState variable instead.
>
> Just a guess.
Date:Thu, 09 Aug 2007 13:06:21 -0000
Author:
|
|
|