DataGridViiew Problem
-
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
-
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
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%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
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%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can
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?
-
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?
change the autosize property to
ColumnHeader
, if it wont work, try othersTVMU^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%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can