I am using this code in a WHDG
<ig:TemplateDataField Key="EditCol" Width="40px"> <ItemTemplate> <asp:ImageButton ID="EditButton" runat="server" ImageUrl="~/images/button-pencil.gif" CommandName="EDIT" CommandArgument='<%# DataBinder.Eval(DirectCast(Container, Infragistics.Web.UI.TemplateContainer).Item, "Row.DataKey[0]") %>' /> </ItemTemplate> <Header Text="Edit" /> </ig:TemplateDataField>I then check the value in my ItemCommand eventProtected Sub NewGrid_ItemCommand(sender As Object, e As Infragistics.Web.UI.GridControls.HandleCommandEventArgs) Handles NewGrid.ItemCommandDebug.Print e.CommandArgumentThis shows the value I expect on page 1 of the grid but on subsequent pages it returns the equivalent value from page one of the grid.I have previously tried other ways of getting data from the grid when it is on later pages but none of them work. They all return data from page one.e.g. Following other threads I used a hidden field (gridRowIndextxt) to return the page number to ItemCommand. But if I set the grid to that page like thisNewGrid.GridView.Behaviors.Paging.PageIndex = gridRowIndextxt.ValueDim RowIndex = e.CommandArgument 'Command Argument WebhierarchicalDataGrid WHDG is the RowIndexDim curRow As Infragistics.Web.UI.GridControls.ContainerGridRecordcurRow = NewGrid.GridView.Rows(RowIndex)Looking at the currow it always has page one values.Help please?
Hello ,
Thank you for posting in our forums.
Using the latest service release of v11.1 and paging in the parent band I was not able to reproduce the issue.
Please refer to the below sample using Northwind database.
Fill free to modify it in order to reproduce the issue.
Hope hearing from you.
I'm having this issue as well with v11.1.
I have an ImageButton with a command argument however on post back I am getting the command argument only from the first page