I have a datagrid on my tab control, on panel 3, When I click to put the datagrid in edit mode and the post back happens the tab control goes back to panel 1. How can I stop this or set it back to panel 3?
I tried: Did not work.
Sub NoteGrid_EditRow(ByVal SenderAs Object,ByVal eAs DataGridCommandEventArgs)
NoteGrid.EditItemIndex = e.Item.ItemIndex
BindDataNotes()
Me.TabPanel3.Focus()
End Sub
I got it,
Me.TabContainer1.ActiveTabIndex ="2"
Usethis.TabContainer.ActiveTabIndex instead ofthis.TabPanel.Focus()
No comments:
Post a Comment