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. C#
  4. DataGridView VS2005

DataGridView VS2005

Scheduled Pinned Locked Moved C#
csharpdatabasevisual-studio
5 Posts 2 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.
  • V Offline
    V Offline
    vykom
    wrote on last edited by
    #1

    Hi! I need to load a DataGridViewComboBoxCell from dynamic SQL data and the other DataGridViewTextBoxCell from another SQL datasource. Thats not it... i need also be able to edit one single value from it. For exmple, I need to be able to select some item or insted be able to insert a new value to get from some insert qerry. All this for earch row in a normal DataGridView Component from Visual Studio .Net 2005 tnks! :^)

    ___________________________ vykom's best. Free your mind! use GPL. up to open source!!!

    N 1 Reply Last reply
    0
    • V vykom

      Hi! I need to load a DataGridViewComboBoxCell from dynamic SQL data and the other DataGridViewTextBoxCell from another SQL datasource. Thats not it... i need also be able to edit one single value from it. For exmple, I need to be able to select some item or insted be able to insert a new value to get from some insert qerry. All this for earch row in a normal DataGridView Component from Visual Studio .Net 2005 tnks! :^)

      ___________________________ vykom's best. Free your mind! use GPL. up to open source!!!

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      If you need to populate a DataGridView from multiple sources, you can do that using DataBindingSource with no problem. You can either specify a data member for each column manually, or I'd go for making a DataView with the custom view you want to make using a SQL SELECT statement. About your second question, I don't really understand what you want to do. Maybe you could give an example or be more specific?

      Regards:rose:

      V 1 Reply Last reply
      0
      • N Nader Elshehabi

        If you need to populate a DataGridView from multiple sources, you can do that using DataBindingSource with no problem. You can either specify a data member for each column manually, or I'd go for making a DataView with the custom view you want to make using a SQL SELECT statement. About your second question, I don't really understand what you want to do. Maybe you could give an example or be more specific?

        Regards:rose:

        V Offline
        V Offline
        vykom
        wrote on last edited by
        #3

        well, tnks for that. About the second question, what I need is something like this: Some user, can manually select an item loaded in the DataGridViewComboBoxCell, but, in any case, he can manually insert a value typing it too. That's why I can't explicity load all items from a BindingSource or TableAdapter normally, because I wouldn't add or edit any item from the control. Y try getting the full action over "mouseclicked" and "itemselected", but I couln't add an item in the combo .... exception released because i'm trying to edit all the concurrency of the BindingSource. And also loading the commbo manually, I couln't draw a simple TextBox in the place of the ComoboBoxCell.. It's kind of tricky. (sorry my english)

        ___________________________ vykom's best. Free your mind! use GPL. up to open source!!!

        N 1 Reply Last reply
        0
        • V vykom

          well, tnks for that. About the second question, what I need is something like this: Some user, can manually select an item loaded in the DataGridViewComboBoxCell, but, in any case, he can manually insert a value typing it too. That's why I can't explicity load all items from a BindingSource or TableAdapter normally, because I wouldn't add or edit any item from the control. Y try getting the full action over "mouseclicked" and "itemselected", but I couln't add an item in the combo .... exception released because i'm trying to edit all the concurrency of the BindingSource. And also loading the commbo manually, I couln't draw a simple TextBox in the place of the ComoboBoxCell.. It's kind of tricky. (sorry my english)

          ___________________________ vykom's best. Free your mind! use GPL. up to open source!!!

          N Offline
          N Offline
          Nader Elshehabi
          wrote on last edited by
          #4

          I guess you'd have to do it manually. You'd check if the value written in the combobox is available in your datasource. If not add it directly in the datasource using a SQL Statement. Did I get you right this time, or am I still astray?

          Regards:rose:

          V 1 Reply Last reply
          0
          • N Nader Elshehabi

            I guess you'd have to do it manually. You'd check if the value written in the combobox is available in your datasource. If not add it directly in the datasource using a SQL Statement. Did I get you right this time, or am I still astray?

            Regards:rose:

            V Offline
            V Offline
            vykom
            wrote on last edited by
            #5

            Right in the correct spot !!!!!! Tanks a lot. I've make it work thanks to you! see you around ????

            ___________________________ vykom's best. Free your mind! use GPL. up to open source!!!

            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