Public Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender |
If Not IsPostBack Then |
For Each item As GridItem In RadGrid1.MasterTableView.Items |
If TypeOf item Is GridEditableItem Then |
Dim editableItem As GridEditableItem = CType(item, GridDataItem) |
'TRY to find my column YEAR here but I'm not able |
If editableItem.ID = "YEAR" Then |
editableItem.Edit = True |
End If |
End If |
Next |
RadGrid1.Rebind() |
End If |
End Sub |
Hello
I have a radgrid which is based on a crossed table query. I set the autoGenerateColumn property to true as I don't know the field's name when I execute it. I would like to put a column (which I know the name) in edit mode. But only that column. I can't set the others columns to readonly as I don't know their names. I tried the code above but the editableItem.Id is alway = nothing.
Can someone help me please