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 delete selected row when user click on delete button
posted

by using this link

I have placed asp.button in grid for delete
kindly tell me how to delete selected record
i mean to say as we do same thing using  " asp.net grid view " by using " RowDeleting " event 
how can we mange like this  by using " UltraWebGrid "
how can we get key field  like in " asp.grid view " we use " DataKeyNames " at bind time 
later we get it by using " DataKeys ". value
how we do this in UltraWebGrid of Infragestic
should i prefer this "ItemCommand  " or what else 

Is there any sample or article e.t.c

to help me

 

Parents
No Data
Reply
  • 340
    Suggested Answer
    posted

    1) use itemcommand of "UltraWebGrid "

     

    2) place datakey name in Properties ( F4 short key)

     

    3)place key name in colum of Editbutton (<igtbl:TemplatedColumn  Key="Edit"> )

     

    4)3)place key name in colum of DeleteButton(<igtbl:TemplatedColumn  Key="Delete"> )

     

    thats it

     

    on  gvInfra_ItemCommand

     

    {

     CellItem del = (CellItem)e.ParentControl;

     

     int customreId = Convert.ToInt32(del.Cell.Row.DataKey);

     

     

     if (del.Cell.Key == "delete")

    {

     

    }

    else {

     

    }

     

    }

    happy programming

     

Children
No Data