Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Problem with Sorting and then Row Selection
posted

I'm having a problem with the UltraWebGrid when I sort a column and then try to select it using a button in a column with a Type of Button. If I sort a column and then select it with the button in that row the CellEventArgs in the ClickCellButton Event seems to contain the data for a different row. This is happening using both Client Side and Server Side sorting. Everything works fine though when I apply a filter to a column and select a row. Any ideas on what could be causing this?

<igtbl:UltraWebGrid ID="findInventoryTransferUltraGrid" runat="server" Browser="Xml"

OnInitializeDataSource="FindInventoryTransferUltraGrid_InitializeDataSource"

OnClickCellButton="FindInventoryTransferUltraGrid_ClickCellButton"

StyleSetName="Caribbean" EnableCrawlerDetection="False">

<Bands>

<igtbl:UltraGridBand>

<Columns>

<igtbl:UltraGridColumn AllowGroupBy="No" AllowRowFiltering="False" BaseColumnName="Select"

CellButtonDisplay="Always" Key="Select" NullText="Select" Type="Button" Width="6%"

FilterOperatorDefaultValue="Contains">

<Header Caption="Select" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Id" Key="Id" Hidden="True">

<ValueList DataMember="Id" DisplayMember="Id" Key="Id" ValueMember="Id" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="OrderNumber" Key="OrderNumber" Width="10%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="OrderNumber" DisplayMember="OrderNumber" Key="OrderNumber" ValueMember="OrderNumber" />

<Header Caption="Order Number" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Source" Key="Source" Width="13%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="Source" DisplayMember="Source" Key="Source" ValueMember="Source" />

<Header Caption="Source" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Destination" Key="Destination" Width="13%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="Destination" DisplayMember="Destination" Key="Destination" ValueMember="Destination" />

<Header Caption="Destination" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Title" Key="Title" Width="14%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="Title" DisplayMember="Title" Key="Title" ValueMember="Title" />

<Header Caption="Title" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="TransferType" Key="TransferType" Width="7%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="TransferType" DisplayMember="TransferType" Key="TransferType" ValueMember="TransferType" />

<Header Caption="Type" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Status" Key="Status" Width="7%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="Status" DisplayMember="Status" Key="Status" ValueMember="Status" />

<Header Caption="Status" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Placed" Key="Placed" Width="5%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="Placed" DisplayMember="Placed" Key="Placed" ValueMember="Placed" />

<Header Caption="Placed" />

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="DateCreated" Key="DateCreated" Width="15%"

FilterOperatorDefaultValue="Contains">

<ValueList DataMember="DateCreated" DisplayMember="DateCreated" Key="DateCreated" ValueMember="DateCreated" />

<Header Caption="Date Created" />

</igtbl:UltraGridColumn>

</Columns>

</igtbl:UltraGridBand>

</Bands>

<DisplayLayout AutoGenerateColumns="False" Name="UltraWebGrid1" RowHeightDefault="25px"

StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AllowSortingDefault="OnClient"

HeaderClickActionDefault="SortMulti" LoadOnDemand="Xml" RowSelectorsDefault="No"

SortCaseSensitiveDefault="False">

<FrameStyle BorderColor="#001060" BorderStyle="Solid" BorderWidth="1px" Cursor="Default"

Font-Names="Verdana" Font-Size="8pt" Width="100%">

</FrameStyle>

<RowAlternateStyleDefault BackColor="#E9E9F7">

<BorderDetails ColorLeft="233, 233, 247" ColorTop="233, 233, 247" />

</RowAlternateStyleDefault>

<Pager AllowPaging="True" PageSize="15" StyleMode="Numeric">

<PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">

<BorderDetails ColorLeft="White" ColorTop="White" />

</PagerStyle>

</Pager>

<EditCellStyleDefault BorderStyle="None" BorderWidth="0px">

</EditCellStyleDefault>

<HeaderStyleDefault BackColor="#2B64A7" BorderColor="Black" BorderStyle="Solid" ForeColor="White">

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />

</HeaderStyleDefault>

<RowStyleDefault BackColor="#C7D5E8" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px"

Font-Names="Verdana" Font-Size="8pt">

<Padding Left="3px" />

<BorderDetails ColorLeft="199, 213, 232" ColorTop="199, 213, 232" />

</RowStyleDefault>

<SelectedRowStyleDefault BackColor="#0A75F0" ForeColor="White">

</SelectedRowStyleDefault>

<AddNewBox>

<BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">

<BorderDetails ColorLeft="White" ColorTop="White" />

</BoxStyle>

</AddNewBox>

<ActivationObject BorderColor="Black" BorderStyle="Dotted" BorderWidth="" AllowActivation="False">

</ActivationObject>

<FilterOptionsDefault AllowRowFiltering="OnServer" FilterUIType="FilterRow" FilterComparisonType="CaseInsensitive">

<FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"

CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"

Font-Size="11px" Width="200px">

<Padding Left="2px" />

</FilterDropDownStyle>

<FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">

</FilterHighlightRowStyle>

<FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"

BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"

Font-Size="11px">

<Padding Left="2px" />

</FilterOperandDropDownStyle>

</FilterOptionsDefault>

</DisplayLayout>

</igtbl:UltraWebGrid>