HighTechTalks DotNet Forums  

DataGridViewComboBoxColumn

Dotnet Framework (WinForms) microsoft.public.dotnet.framework.windowsforms


Discuss DataGridViewComboBoxColumn in the Dotnet Framework (WinForms) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default DataGridViewComboBoxColumn - 02-02-2005 , 06:11 AM






Hi Gurus.

I want to display a datagridview with a column of type
DataGridViewComboBoxColumn.
I don't want to bind this column to the datasource of the datagridview.
I tried adding the column through the wizard, but encountered the
following exception when displaying the grid:
System.FormatException: The value of the DataGridViewComboBoxCell is
invalid.

Only when there was no data at all in the combo box I didn't get those
exceptions, but that is, naturally, not very helpful.

I know how to display the values of a DataGridViewComboBoxColumn when
it is bound to a datasource, but again - I don't want it binded to
anything.

How can I do that?

Thanks!


Reply With Quote
  #2  
Old   
Tom Krueger [MSFT]
 
Posts: n/a

Default Re: DataGridViewComboBoxColumn - 02-09-2005 , 07:21 PM






Hello,

I probably can help you out, however, I don't quite understand what you are
trying to accomplish. If you post some more details as to how functionaly
you want the form to work I should be able to recommend something.

The main thing I don't understand is why you don't want the datagridview
datasource to bind to the ComboBoxColumn. Not that the why really matters,
it's more that I want to make sure I am helping you solve the right problem.

--
Tom Krueger

My Blog - http://weblogs.asp.net/tom_krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

<mamil (AT) bezeqint (DOT) net> wrote

Quote:
Hi Gurus.

I want to display a datagridview with a column of type
DataGridViewComboBoxColumn.
I don't want to bind this column to the datasource of the datagridview.
I tried adding the column through the wizard, but encountered the
following exception when displaying the grid:
System.FormatException: The value of the DataGridViewComboBoxCell is
invalid.

Only when there was no data at all in the combo box I didn't get those
exceptions, but that is, naturally, not very helpful.

I know how to display the values of a DataGridViewComboBoxColumn when
it is bound to a datasource, but again - I don't want it binded to
anything.

How can I do that?

Thanks!




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.