hi all,
I am using editform to edit my data in radgridview. EditFormType is 'Autogenerated'. I have one problem in insert mode.
I have one status column in the grid. This is not a visible column and i need to show this column in edit mode only. In normal mode and insert mode i need not siplay this control. I specify the template column in grid view as follows
In my databound event i try to set visibility of this column. checkbox will hide in the insert mode but the header text exists the same. how to handle that header text also. my code behind is
Only checkbox is hide. please help to handle that header text. If i didnt put header text in design mode, ':' is visible. how to handle this colon (:) in the editmode
I am using editform to edit my data in radgridview. EditFormType is 'Autogenerated'. I have one problem in insert mode.
I have one status column in the grid. This is not a visible column and i need to show this column in edit mode only. In normal mode and insert mode i need not siplay this control. I specify the template column in grid view as follows
<telerik:GridTemplateColumn UniqueName="Status" HeaderText="Status" Visible="false" > |
<EditItemTemplate> |
<asp:CheckBox ID="chk1" runat="server" /> |
</EditItemTemplate> |
</telerik:GridTemplateColumn> |
In my databound event i try to set visibility of this column. checkbox will hide in the insert mode but the header text exists the same. how to handle that header text also. my code behind is
Protected Sub Rad_grd1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles Rad_grd1.ItemDataBound |
If (TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode) Then |
Dim edititem As GridEditFormItem = CType(e.Item, GridEditableItem) |
If edititem.OwnerTableView.IsItemInserted Then |
edititem("Status").Visible = False |
Else |
edititem("Status").Visible = True |
End If |
End If |
End Sub |