I have a grid that is always in EditMode for all rows.
(what happend to attachment's? I would add a picture but... can't)
I need to be able to do an autopostback for the Quantity Column which works fine by setting it in ItemCreated like this:
(what happend to attachment's? I would add a picture but... can't)
I need to be able to do an autopostback for the Quantity Column which works fine by setting it in ItemCreated like this:
| Private Sub ItemsGrid_ItemCreated(ByVal sender As Object, _ |
| ByVal e As GridItemEventArgs) _ |
| Handles ItemsGrid.ItemCreated |
| If (TypeOf e.Item Is GridEditableItem AndAlso _ |
| e.Item.IsInEditMode) Then |
| Dim item As GridEditableItem = CType(e.Item, GridEditableItem) |
| Dim editor As GridTextBoxColumnEditor = _ |
| CType(item.EditManager.GetColumnEditor("Quantity"), _ |
| GridTextBoxColumnEditor) |
| With editor.TextBoxControl |
| .AutoPostBack = True |
| .EnableViewState = True |
| End With |
| End If |
| End Sub |