|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I am using a datagrid with two events .
OnPageIndexChanged="doPaging" onitemcommand="mydatagrid_itemcommand" when i click on a record on my datagrid the mydatagrid_itemcommand event fires and works properly . when i click on the paging tags <> the doPaging must fire but it doesnt , in that case the onitemcommand fires again . if i delete the onitemcommand from the datagrid properties the doPaging fires normaly . is this a bug or what? ![]() |
|
#2
|
|||
|
|||
|
Fix
The OnItemCommand gets called first. One way to handle
this is to add the following line in the beginning of your OnItemCommand handler. if(e.Item.ItemType == ListItemType.Pager) return; Your paging handler will then be called and all is well. Regards Sink |
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Datagrid Event Problem is this a bug or what? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|