I need to deselect a row and select another row from code behind.
I am trying to do it in CellSelectionChanged event of the grid.
I have tried gvLOBList.Behaviors.Selection.SelectedRows.Remove(gvLOBList.Rows(2))
but this seems to be not working.
Any pointers in this regard would be very helpful.
Hi romita,
Would you tell me which Infragistics version are you using(please give me full version number such as 10.2.20102.2101)? Would you paste here the markup of your webdatagrid?
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Infragistics version i am using is 10.2.20102.1011. Please find the markup of the web data grid attached.
<ig:WebDataGrid ID="igPlacementQuote" runat="server" Height="350px" Width="350px" AutoGenerateColumns="False" EnableAjax="False" EnableDataViewState="true" BackColor="White"> <Columns> <ig:BoundDataField DataFieldName="PlacementId" Key="PlacementId" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="QuoteId" Key="QuoteId" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="DeliveryDate" Key="DeliveryDate" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="DeliveryMode" Key="DeliveryMode" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="LobShortDesc" Key="LobShortDesc" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="LobCode" Key="LobCode" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="IsCloned" Key="IsCloned" Hidden="True"> </ig:BoundDataField> <ig:BoundDataField DataFieldName="PlacementQuoteName" Key="PlacementQuoteName" Hidden="True"> </ig:BoundDataField> <ig:TemplateDataField Key="delete" Width="20px"> <ItemTemplate> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/_layouts/images/WebSQP/deleteImg.jpg"/> </ItemTemplate> <Header TemplateId="Delete" CssClass="style5_SQPDetails" /> </ig:TemplateDataField> <ig:TemplateDataField Key="PlacementQuote"> <Header Text="Placement Name" TemplateId="Placement" CssClass="style5_SQPDetails" /> <ItemTemplate> <asp:Label ID="lblPlacementName" runat="server" Font-Bold="True" Font-Size="Small" Text='<%#Eval("PlacementQuoteName") %>'> </asp:Label> <br /> <asp:label runat="server" id="lbldelivery" Text='<%# "Delivered"+ Eval("DeliveryDate")+" Via "+ Eval("DeliveryMode") %>' Font-Size="XX-Small"> </asp:label> <br /> <asp:label runat="server" id="lblLobDesc" Text='<%# Eval("LobShortDesc") %>' Font-Size="XX-Small"> </asp:label> </ItemTemplate> </ig:TemplateDataField> </Columns> <Behaviors> <ig:Selection RowSelectType="None" SelectedCellCssClass="style4_SQPDetails" > <AutoPostBackFlags CellSelectionChanged="True" /> </ig:Selection> <ig:EditingCore> <Behaviors> <ig:RowDeleting /> </Behaviors> </ig:EditingCore> </Behaviors> </ig:WebDataGrid>