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

RadGrid hid in view show in edit

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 19 Nov 2013, 11:50 AM
Hi all,

So i have a radgrid with an template edit mode, and the problem is, i havea hidden column, and i want to show  only, i edit mode in that row and not e all rows? is there a way???

Best Regards and many thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Nov 2013, 10:17 AM
Hi Carlos,

I'm not clear about your requirement, i guess you want to show a hidden column in editmode. Please try the following code snippet if you are using the normal editform.

ASPX:
<telerik:GridBoundColumn DataField="EmployeeID" HeaderText="EmployeeID" Visible="false" />

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item is GridEditableItem && e.Item.IsInEditMode)
       {
           GridEditableItem edit = (GridEditableItem)e.Item;
           edit["EmployeeID"].Visible = true;
       }
   }

Thanks,
Princy


Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or