More Group Sites
School Rankings
Jobless Net
Better Home
Enviro++


Help | Subscribe/Unsubscribe | Rules | Other Group Sites: Better Education | Better Education Forum
Welcome Guest Search | Active Topics | Members | Log In | Register

DataGridViewComboBoxCell value is not valid Options · View
Lomeli
Posted: Thursday, April 14, 2011 4:35:02 PM
Rank: Newbie
Groups: Member

Joined: 4/14/2011
Posts: 1
Points: 3
Location: 土库曼斯坦
I found this exception can be caused by an invalid field type which is bound to the datagridview column to show enumerated values. For example, datagridview comboBox doesn't like tinyint (byte) type, use int type System.Int32. Otherwise it will cause system.argumentexception: DataGridViewComboBoxCell value is not valid.

To change the column type, first update the database table. then update the dataset in the designer: select the field and change the data type accordingly.

Click here to see how to display the enumerated strings in the combo boxes in a datagridview.













ps3 usercheat
3DS flash card
3DS R4
Sponsor
Posted: Thursday, April 14, 2011 4:35:02 PM
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.051 seconds.