datagrid problem urgent pls.
i have a datagrid and in that datagrid i have a edit button and whenever the user click on edit it will make the datagrid in a editable works great but the problem is here....
on top of the datagrid i have a textbox for search instead of browsing all the pages user can type on textbox and search but on my editcommand its not giving me the proper itemindex
what i mean is that,
after i search and the search result display on the grid i click on edit, once i click on the edit button inside the datagrid it always give me ITEMINDEX to 0
anybody have simiar expirence ?
Public Sub dg_EditCommand(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles dg.EditCommand
dg.EditItemIndex = e.Item.ItemIndex
FillDS(sSortString)
End Sub
|