Posted 8 September 2019, 3:33 pm EST
Hello,
I am using code below to select multiple folder in a menu control "C1.C1Command"and display values in a C1TrueDBGrid control.
Is the same possible in a ASP.NET App using C#?
Private Sub Small_Click(ByVal sender As Object, ByVal e As C1.Win.C1Command.ClickEventArgs) Handles Small.Click Medium.Checked = False Small.Checked = True C1Command9.Checked = False C1Command10.Checked = False C1Command11.Checked = False C1Command13.Checked = False C1Command14.Checked = False C1Command15.Checked = False C1Command16.Checked = False C1Command17.Checked = False C1Command18.Checked = False C1CommandMenu16.Checked = False C1CommandMenu17.Checked = False AnnexesCommand.Checked = False Format.Checked = False Helpaop.Checked = False CheckCountryList.Clear() CheckCountryLista.Clear() CheckCountryListchpt.Clear() C1Screen1.DataSource = Nothing C1Screen2.DataSource = Nothing C1Screen3.DataSource = Nothing ' C1Screen1.Columns(0).Visible = cleargrids() fsLinkCHPT = New System.IO.FileStream(Application.StartupPath + "\Chapters.xml", IO.FileMode.Open) dtsetLinkCHPT.Clear() dtsetLinkCHPT.ReadXml(fsLinkCHPT) fsLinkCHPT.Close() Dim SearchCriteria As String = "CHPT > 100 AND CHPT < 120" Dim FilteredDT As DataTable Dim DV As New DataView(dtsetLinkCHPT.Tables(0), SearchCriteria, Nothing, DataViewRowState.CurrentRows) FilteredDT = DV.ToTable If FilteredDT.Rows.Count > 0 Then C1TrueDBGrid1.DataSource = FilteredDT.DefaultView.ToTable(True, New String() {"CHPT", "TITLE"}) C1TrueDBGrid1.Splits(0).DisplayColumns(0).Width = 45 End If hidegrids() End Sub