This is a migrated thread and some comments may be shown as answers.

RadGrid Building Paging

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ghadeer
Top achievements
Rank 1
ghadeer asked on 01 Jan 2009, 06:07 AM
Hello All,
I used needdatasource event to bind my grid like:

 

try

 

{

if (Status == 0)

 

grdRequest.DataSource = GetPagedResult(1);

 

else

 

grdRequest.DataSource = GetPagedResult(Status);

 

}

 

catch (Exception ex)

 

{

LiteralControl lCtl = new LiteralControl(ex.Message);

 

grdRequest.Controls.Add(lCtl);

}

 

finally

 

{

}

and I enabled the building paging.

my problem that at runtime when I click the next page I get empty page!!!!

could help me to solve my preblem

thanks
ghadeer

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jan 2009, 06:28 AM
Hi Ghadeer,

From the provided code I am not sure how you are setting the value for 'Status'. I guess this can happen If the Status returns a null value. Also check whether the catch section is getting fired when this happens.

Shinu
Tags
Grid
Asked by
ghadeer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or