This is a migrated thread and some comments may be shown as answers.

Delete One Row in Gridview

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
reza
Top achievements
Rank 1
reza asked on 08 May 2015, 06:57 AM

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 
                 }

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 May 2015, 07:03 AM
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
Tags
Grid
Asked by
reza
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or