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

Accessing items on EditForm during Edit

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krutika
Top achievements
Rank 1
Krutika asked on 15 Nov 2012, 04:38 PM
How can I access each item on the edit form when the row is being updated/ inserted?
<MasterTableView EditMode="PopUp" CommandItemSettings-ShowAddNewRecordButton="True" DataKeyNames="RowId" >

keyfield RowID is getting displayed on the popup. I want to hide it.

1 Answer, 1 is accepted

Sort by
0
Krutika
Top achievements
Rank 1
answered on 15 Nov 2012, 09:54 PM
This is how I got it working:

Inside RadGrid1_ItemCommand

Dim rowIdcol As GridBoundColumn = CType(e.Item.OwnerTableView.GetColumnSafe("rowId"), GridBoundColumn)
                If (e.CommandName = RadGrid.EditCommandName Or e.CommandName = RadGrid.PerformInsertCommandName Or e.CommandName = RadGrid.CancelCommandName) Then
                   rowIdcol.ReadOnly = True
                    rowIdcol.Display = False
                End If

Tags
Grid
Asked by
Krutika
Top achievements
Rank 1
Answers by
Krutika
Top achievements
Rank 1
Share this question
or