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. checking values in datagrid rows

checking values in datagrid rows

Scheduled Pinned Locked Moved .NET (Core and Framework)
winformshelptutorial
3 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.
  • R Offline
    R Offline
    Rekha Patel
    wrote on last edited by
    #1

    Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP

    L T 2 Replies Last reply
    0
    • R Rekha Patel

      Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP

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

      i am not sure my giving this solution that, is it true or no ? but please try to solve your prblem. firt, capture the value from the combo box and than check its with other columns which you want to made uneditable by apply the contion that if the particulare item is selected from the combobox than set the editable property of that columns.

      1 Reply Last reply
      0
      • R Rekha Patel

        Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP

        T Offline
        T Offline
        Thang T
        wrote on last edited by
        #3

        Dear, You can try in this way. You can use the method FindControl of the datagrid item to find the control in your datagrid Dim x as new control for each x in datagrid.controls ... next You use this code to show all the control in the datagrid, then you can try deeper into the datagrid item to find your combobox... then you can use the method findcontrol in the datagrid item to get value and set value for your control. PS: I'm not sure if the code is correctly right or not. But that's the idea. I did well in ASP .NET Ich liebe .NET :)

        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