Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting DataGirdViewComboBoxCell values

Status
Not open for further replies.

atnpowell

Programmer
Joined
Mar 5, 2004
Messages
2
Location
GB
Hi there
I need to know how to set the display value of each DataGridViewComboBoxCell in a DataGridViewComboBoxColumn on the fly where the values may be all different. I am using a dataset as the data source for my DataGridViewComboBoxColumn .

The only reference I can find to this anywhere is how to set one display value for the whole column ie.

Dim objComboCol as DataGridViewComboBoxColumn
objComboCol.DefaultCellStyle.NullValue = "My Display Value".

However I need to be able to set each value individually on the fly.

I am programming in VB.NET in VS2005.

Any help would be much appreciated.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top