Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
how to find out command name in " UltraWebGrid "
posted

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

 

 

Parents
  • 340
    Suggested Answer
    posted

    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

Reply Children
No Data