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. ComboBoxColumn in Datagrid

ComboBoxColumn in Datagrid

Scheduled Pinned Locked Moved C#
question
7 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.
  • H Offline
    H Offline
    hxxbin
    wrote on last edited by
    #1

    Hi Well I really need a dummy's manual about ComboBoxColumn in a Datagrid, I try to do it, but still doesn't work, I made this: 1 - I added a ComboBoxColum class from MSDN. 2 - I added a TableStyle to my datagrid, this datagrid's datasource is a dataview. The MappingName is empty?? :confused: 3 - I made a instance of the ComboBoxColum class, and I added it to the TableStyle. 4 - I binded the ComboBoxColum to a table. In theory is all, or no?? And what it doesn't work??? Thanks ---- hxxbin

    R 1 Reply Last reply
    0
    • H hxxbin

      Hi Well I really need a dummy's manual about ComboBoxColumn in a Datagrid, I try to do it, but still doesn't work, I made this: 1 - I added a ComboBoxColum class from MSDN. 2 - I added a TableStyle to my datagrid, this datagrid's datasource is a dataview. The MappingName is empty?? :confused: 3 - I made a instance of the ComboBoxColum class, and I added it to the TableStyle. 4 - I binded the ComboBoxColum to a table. In theory is all, or no?? And what it doesn't work??? Thanks ---- hxxbin

      R Offline
      R Offline
      Ruchi Gupta
      wrote on last edited by
      #2

      Refer to following article....it might help http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp Thanks Ruchi

      H H 2 Replies Last reply
      0
      • R Ruchi Gupta

        Refer to following article....it might help http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp Thanks Ruchi

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp[^]

        Microsoft MVP, Visual C# My Articles

        1 Reply Last reply
        0
        • R Ruchi Gupta

          Refer to following article....it might help http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp Thanks Ruchi

          H Offline
          H Offline
          hxxbin
          wrote on last edited by
          #4

          Yeah, I try this too, but I look my problem is with the MappingName, into my TableStyle I can't choose anything, and if type something the datagrid isn't works, like I know the MappingName is the table to used (a DataMember), but I'm working with a DataView, so don't use DataMember, and I can't use a Mapping Name :(. I must try to develop the datagrid form again from zero :sigh: or what?? ---- hxxbin

          R 1 Reply Last reply
          0
          • H hxxbin

            Yeah, I try this too, but I look my problem is with the MappingName, into my TableStyle I can't choose anything, and if type something the datagrid isn't works, like I know the MappingName is the table to used (a DataMember), but I'm working with a DataView, so don't use DataMember, and I can't use a Mapping Name :(. I must try to develop the datagrid form again from zero :sigh: or what?? ---- hxxbin

            R Offline
            R Offline
            Ruchi Gupta
            wrote on last edited by
            #5

            try tableStyle.MappingName = dataView.Table.TableName;

            H 1 Reply Last reply
            0
            • R Ruchi Gupta

              try tableStyle.MappingName = dataView.Table.TableName;

              H Offline
              H Offline
              hxxbin
              wrote on last edited by
              #6

              I got it, I made the datagrid works with a DataTable :-D Now I will try with the DataView X| Thanks, I'll try your comment. ---- hxxbin

              H 1 Reply Last reply
              0
              • H hxxbin

                I got it, I made the datagrid works with a DataTable :-D Now I will try with the DataView X| Thanks, I'll try your comment. ---- hxxbin

                H Offline
                H Offline
                hxxbin
                wrote on last edited by
                #7

                it's works with a DataView, I'm happy now, THANKS!!!! :-D ---- hxxbin

                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