AllowMultipleSelection="True" Does Not Work

1 reply. Last post: February 24, 2010 12:01 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
place DanielMember

When I set the AllowMultipleSelection="True", it appears to only work when I click on a very specific location onthe row. Even then I can't replicate. So, I get lucky it seems every 10th click or so to highlight a second row by using the ctrl or shift keys and the mouse click.  We set the columns up via an XML file (see code behind below). Any suggestions why it sporadically works?

<ISWebGrid:WebGrid ID="reportGrid" runat="server" DefaultStyleMode="Elegant" DataMember="ReportData" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnPrepareDataBinding="WebGrid1_PrepareDataBinding" OnInitializeLayout="WebGrid1_InitializeLayout">

<LayoutSettings RowHighlightType="EntireRow" AutoWidth="true" AllowMultipleSelection="Yes" AlternatingColors="true" CellPaddingDefault="3" GridLines="None"> <AlternatingRowStyle BackColor="Beige" /> <SelectedRowStyle BackColor="#ffbd69" /> <HeaderStyle Font-Bold="true" /> <GroupRowInfoStyle Font-Bold="true"/> </LayoutSettings> <RootTable GroupTotalVisible="true"> </RootTable> </ISWebGrid:WebGrid>

 

Protected Sub WebGrid1_PrepareDataBinding(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) ''set the sorting in here Dim ColumnSet As String = "" Dim columnList As ArrayList = GetReportColumns(True) Dim gridColumn As GridColumn If Page.IsPostBack = False Then

reportGrid.RootTable.SortedColumns.Clear()

reportGrid.LoadTablesStructureFromXml(Server.MapPath("../Layouts/Holdings.xml"))

"../Layouts/Holdings.xml"))End If
All times are GMT -5. The time now is 3:56 AM.
Previous Next