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

Two level editable grid

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 03 Jan 2014, 02:55 PM
Hi.
i have two level editable grid. On expand is it possible to hide the parent edit column?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jan 2014, 03:07 PM
Hi Erin,

Please try the following code snippet:

C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
 {
 foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
  {
    if (item.Expanded)
     {
      foreach (GridColumn column in RadGrid1.MasterTableView.Columns)
      {
        if (column.UniqueName == "EditParentColumnUniqueName")
        {
          column.Visible = false;
        }
      }
     }
   }
 }

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