Hi,
I have a datagrid with a column of select buttons (using the property
builder). Whenever I change the column from Link Button to Push Button the
ItemCommand handler stops picking up on the button click.
Has anybody come across this before / know how to fix it?
Also, when I turn on paging in the datagrid, the page numbers appear but
they are not links so I only see the top x records and cannot move on. Does
anybody know what I am doing wrong?
Thanks in Advance,
Stu
Sheeraz - 09 Aug 2003 06:03 GMT
Hi,
You must have to reassign the ItemCommand to the relevant
function after making the push button. there is no other
thing going wrong.
and for paging do the following:
in HTML of datagrid write "OnPageIndexChanged='changePage'"
and in Code write this.
public void changePage(Object sender,
DataGridPageChangedEventArgs e)
{
DataGrid Event = (DataGrid) sender;
Event.CurrentPageIndex = e.NewPageIndex;
Event.DataBind();
}
>-----Original Message-----
>Hi,
[quoted text clipped - 19 lines]
>
>.