Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. difficulties with AdvancedDatagridView

difficulties with AdvancedDatagridView

Scheduled Pinned Locked Moved .NET (Core and Framework)
databasehelp
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14733866
    wrote on last edited by
    #1

    i have already a good Programm which shows my database in a Datagridview, everything is Ok with it, now i would like to add Filter Option to my Datagridview like Excel Filter i used : AdvanceDatagridview it's an advanced Datagridview with a lot of filter Option, the problem here, i can not use this datagridview unless i bind it with a Datatable and i also when i did that t found a big problem because in my old code there is Datagridviewrow and now so i tried to convert Datagridviewrow to datarow to import it in datatable and to use it but it did not work my Old Code :

    sSQL = "SELECT " &
    "ItemID, " &
    "PSC_tdItems.OrderID, " &
    "ArtikelID, " &
    "Menge, " &
    "Art, "
    "CodeID, " &

    MyCommand = New SqlCommand(sSQL, conFF)

      drW2P = MyCommand.ExecuteReader
      If drW2P.HasRows Then
        While drW2P.Read()
          nField\_ItemID = 0
          nField\_OrderID = 0              
          nField\_Quantity = 0.0
          sField\_Art = ""
          sField\_pscArticleID = ""
          sField\_CodeID = ""
    

    If Not DBNull.Value.Equals(drW2P("ItemID")) Then
    nField_ItemID = Convert.ToInt32(drW2P("ItemID"))
    End If
    If Not DBNull.Value.Equals(drW2P("OrderID")) Then
    nField_OrderID = Convert.ToInt32(drW2P("OrderID"))
    End If
    If Not DBNull.Value.Equals(drW2P("Menge")) Then
    nField_Quantity = Convert.ToDouble(drW2P("Menge").ToString.Replace(".", ""))
    End If
    If Not DBNull.Value.Equals(drW2P("Art")) Then
    sField_Art = drW2P("Art").ToString
    End If
    If Not DBNull.Value.Equals(drW2P("ArticelNumber")) Then
    sField_mspArticleNumber = drW2P("ArticelNumber").ToString
    End If
    If Not DBNull.Value.Equals(drW2P("CodeID")) Then
    sField_CodeID = drW2P("CodeID").ToString
    End If
    Try
    MyRow = New DataGridViewRow
    MyRow.CreateCells(dgvW2P)
    MyRow.SetValues("0",
    imgNotOK.ToBitmap,
    nField_ItemID,
    nField_OrderID,
    nField_Quantity
    sField_Art,

    L 1 Reply Last reply
    0
    • M Member_14733866

      i have already a good Programm which shows my database in a Datagridview, everything is Ok with it, now i would like to add Filter Option to my Datagridview like Excel Filter i used : AdvanceDatagridview it's an advanced Datagridview with a lot of filter Option, the problem here, i can not use this datagridview unless i bind it with a Datatable and i also when i did that t found a big problem because in my old code there is Datagridviewrow and now so i tried to convert Datagridviewrow to datarow to import it in datatable and to use it but it did not work my Old Code :

      sSQL = "SELECT " &
      "ItemID, " &
      "PSC_tdItems.OrderID, " &
      "ArtikelID, " &
      "Menge, " &
      "Art, "
      "CodeID, " &

      MyCommand = New SqlCommand(sSQL, conFF)

        drW2P = MyCommand.ExecuteReader
        If drW2P.HasRows Then
          While drW2P.Read()
            nField\_ItemID = 0
            nField\_OrderID = 0              
            nField\_Quantity = 0.0
            sField\_Art = ""
            sField\_pscArticleID = ""
            sField\_CodeID = ""
      

      If Not DBNull.Value.Equals(drW2P("ItemID")) Then
      nField_ItemID = Convert.ToInt32(drW2P("ItemID"))
      End If
      If Not DBNull.Value.Equals(drW2P("OrderID")) Then
      nField_OrderID = Convert.ToInt32(drW2P("OrderID"))
      End If
      If Not DBNull.Value.Equals(drW2P("Menge")) Then
      nField_Quantity = Convert.ToDouble(drW2P("Menge").ToString.Replace(".", ""))
      End If
      If Not DBNull.Value.Equals(drW2P("Art")) Then
      sField_Art = drW2P("Art").ToString
      End If
      If Not DBNull.Value.Equals(drW2P("ArticelNumber")) Then
      sField_mspArticleNumber = drW2P("ArticelNumber").ToString
      End If
      If Not DBNull.Value.Equals(drW2P("CodeID")) Then
      sField_CodeID = drW2P("CodeID").ToString
      End If
      Try
      MyRow = New DataGridViewRow
      MyRow.CreateCells(dgvW2P)
      MyRow.SetValues("0",
      imgNotOK.ToBitmap,
      nField_ItemID,
      nField_OrderID,
      nField_Quantity
      sField_Art,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is a third party product so you need to contact the person who wrote it.

      M 1 Reply Last reply
      0
      • L Lost User

        This is a third party product so you need to contact the person who wrote it.

        M Offline
        M Offline
        Member_14733866
        wrote on last edited by
        #3

        sorry, but i am looking for a solution , if i could do that i will not post here my question

        L 1 Reply Last reply
        0
        • M Member_14733866

          sorry, but i am looking for a solution , if i could do that i will not post here my question

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          A solution to what? Your question is far from clear.

          M 1 Reply Last reply
          0
          • L Lost User

            A solution to what? Your question is far from clear.

            M Offline
            M Offline
            Member_14733866
            wrote on last edited by
            #5

            a solution for my problem , how to use this code with the new Datagridview, the probleme is with property hasrow, i add the data to the DataTable and use that as the binding source for the DataGridView.

            L 1 Reply Last reply
            0
            • M Member_14733866

              a solution for my problem , how to use this code with the new Datagridview, the probleme is with property hasrow, i add the data to the DataTable and use that as the binding source for the DataGridView.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              There's multiple gridviews out there with the same name; not even sure which one to look at. For the normal GridView, we have documentation. Not so much for the unknown advanced version.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

              M 1 Reply Last reply
              0
              • L Lost User

                There's multiple gridviews out there with the same name; not even sure which one to look at. For the normal GridView, we have documentation. Not so much for the unknown advanced version.

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

                M Offline
                M Offline
                Member_14733866
                wrote on last edited by
                #7

                that is GitHub - davidegironi/advanceddatagridview: A .NET WinForm DataGridView with advanced capabilities[^] which i used

                P 1 Reply Last reply
                0
                • M Member_14733866

                  that is GitHub - davidegironi/advanceddatagridview: A .NET WinForm DataGridView with advanced capabilities[^] which i used

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  The most appropriate place to ask questions about github projects is on the github project itself. The chances of the contributors happening on your question here are very small. The place to ask your question is here[^].

                  Advanced TypeScript Programming Projects

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups