Groups | Blog | Home
all groups > asp.net datagrid control > september 2007 >

asp.net datagrid control : How is this possible?!



Med
9/26/2007 1:46:51 PM
Hi,

I have a asp.net 2.0 GridView in an Ajax Update panel with paging enabled.
In the dropdown box users can select the grid's page size. My Gridview has
12 rows and the default pagesize is 10. However when Page size "20" or
"all" is selected, the grid shows all 12 rows in the browser (IE7 or FF2),
but there is no sign of items in row 11 and 12 in the HTML view source of
the page!! How is this possible?

Each row has a "Update" button which work ok even for row 11 and 12! But I
also have TemplateColumn with a checkbox as header that
selecting/deselecting it, will select/deselect all rows checkboxes except
row 11 and 12. The javascript function code for this has the row 11 and 12
to handle them, but a I mentioned there is no sign of these rows while they
are shown in the browser!


Thanks for your time in advance.

Kind Regards

Med

Med
9/26/2007 3:51:34 PM
Hi again,

I just fixed it by using "ScriptManager.RegisterClientScriptBlock" instead
of "ClientScript.RegisterStartupScript" to add my javascript function in
Page_PreRender.

Med

[quoted text, click to view]

AddThis Social Bookmark Button