how to use itemommand event of " UltraWebGrid "
to differentiate commandname
for example
in My UltraWebGrid there are 2 buttons
1 for edit other for delete
how to find out delete is clicked or edit
" Like Row command event of asp.net gridview .
if ( e.commandname=="delete")
{ delete }
else
{ Edit } "
thanks
1) use itemcommand of "UltraWebGrid " 2) place key name in colum of Editbutton ( ) 3) place key name in colum of DeleteButton( )
( eg
<igtbl:TemplatedColumn Key="Edit">
<igtbl:TemplatedColumn Key="Delete">
)
thats it
For example gvInfra_ItemCommand {CellItem del = (CellItem)e.ParentControl; if (del.Cell.Key == "delete"){ }else { } }happy programming
Hi qasimidl,
Thank you for sharing your solution.
If any questions arise regarding this natter, please refer to:
http://forums.infragistics.com/forums/t/67502.aspx