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. DataGridViiew Problem

DataGridViiew Problem

Scheduled Pinned Locked Moved C#
helpcssquestionannouncement
4 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.
  • A Offline
    A Offline
    AshokParikh
    wrote on last edited by
    #1

    I am working on VS2005,having a DataGridView Control bound to a data source. Out of 13 coulums in the grid, 3 columns are DataGridViewComboBoxColumn and two Text Columns have WrapMode=True. I found that add/update etc. work fine, but since the wrpped text was not properly visible, I set the AutoSizeRowsMode = DisplayedCells, and I started getting following error DataGrid Cell value is not valid The error repeats for all the ComboBox type Cells and contents are not displayed. Once I restore the AutoSizeRowsMode=none the error disappears? Any help Ashok

    X 1 Reply Last reply
    0
    • A AshokParikh

      I am working on VS2005,having a DataGridView Control bound to a data source. Out of 13 coulums in the grid, 3 columns are DataGridViewComboBoxColumn and two Text Columns have WrapMode=True. I found that add/update etc. work fine, but since the wrpped text was not properly visible, I set the AutoSizeRowsMode = DisplayedCells, and I started getting following error DataGrid Cell value is not valid The error repeats for all the ComboBox type Cells and contents are not displayed. Once I restore the AutoSizeRowsMode=none the error disappears? Any help Ashok

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      this is because you set it to DisplayedCell, if your value is null then this comes, try others

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can

      A 1 Reply Last reply
      0
      • X Xmen Real

        this is because you set it to DisplayedCell, if your value is null then this comes, try others

        TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can

        A Offline
        A Offline
        AshokParikh
        wrote on last edited by
        #3

        Thanks XMen, I do not have any null cell but the error takes place. In fact in the database no field is allowed to be null. Can you help?

        X 1 Reply Last reply
        0
        • A AshokParikh

          Thanks XMen, I do not have any null cell but the error takes place. In fact in the database no field is allowed to be null. Can you help?

          X Offline
          X Offline
          Xmen Real
          wrote on last edited by
          #4

          change the autosize property to ColumnHeader, if it wont work, try others

          TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can

          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