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

hide the row inside a detail table

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryann
Top achievements
Rank 1
Ryann asked on 22 Jan 2014, 01:46 PM
Hi,
How to hide the row inside a detail table based on some condition?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jan 2014, 01:50 PM
Hi Ryann,

Please try the following code snippet:

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
 if ((e.Item is GridDataItem) && (e.Item.OwnerTableView.Name == "Child"))
  {
    GridDataItem data = (GridDataItem)e.Item;
         //Some condition  
        e.Item.Display = false;    
  }
}

Thanks,
Shinu
Tags
Grid
Asked by
Ryann
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or