Katya85S
Programmer
- Jul 19, 2004
- 190
How to place cursor on the selected DataGrid’s BoundColumn:
<asp:BoundColumn DataField="NewEntry" Visible="false" />
Users clicks on an EditCommandColumn button:
<asp:EditCommandColumn EditText="Edit" ButtonType="PushButton" UpdateText="Submit" CancelText="Cancel" />
This makes that BoundColumn text field visible for user’s entry:
Sub dg_Edit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
myDataGrid.EditItemIndex = e.Item.ItemIndex
myDataGrid.Columns(5).Visible = True
BindData()
End Sub
<asp:BoundColumn DataField="NewEntry" Visible="false" />
Users clicks on an EditCommandColumn button:
<asp:EditCommandColumn EditText="Edit" ButtonType="PushButton" UpdateText="Submit" CancelText="Cancel" />
This makes that BoundColumn text field visible for user’s entry:
Sub dg_Edit(ByVal sender As Object, ByVal e As DataGridCommandEventArgs)
myDataGrid.EditItemIndex = e.Item.ItemIndex
myDataGrid.Columns(5).Visible = True
BindData()
End Sub