Delete One Row in Gridview

2 posts, 0 answers
  1. reza
    reza avatar
    1 posts
    Member since:
    Apr 2014

    Posted 08 May 2015 Link to this post

    hi 

    I Have RadGrid and want Delete One Row in ItemDataBound..... 

    means , when ItemDataBound appaly i want  check some Item and then delete one row .... 

     protected void gvShow_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem dataitem = (GridDataItem)e.Item;
                 
                 if ( check one EstateMent)
                  {  

    Do Some things

                    }

                    else
                    {
                    here I want Delete Current Row 
                     }

  2. Eyup
    Admin
    Eyup avatar
    3785 posts

    Posted 13 May 2015 Link to this post

    Hello Reza,

    You can use the e.Item.Display = false; approach in order to hide the item.
    Hope this helps.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top