Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Combo To DataGridView
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01440197
Message ID:
01440260
Views:
27
>>>I'm trying to add a combo box to a data grid view. I'm following this example:
>>>http://www.c-sharpcorner.com/UploadFile/RustemSoft/DataGridCombo07302005031036AM/DataGridCombo.aspx
>>>
>>>So I type this in:
>>>
>>>DataGridComboBoxColumn cboTables = new DataGridComboBoxColumn();
>>>
>>>
>>>The compiler complains that I'm missing a reference. I Google it and find it's in System.Windows.Controls. Except this namespace
>>>does not exist. Using VS 2008.
>>>
>>>How the heck do you add a combo to a grid?
>>
>>
>>The Rustemsoft control are datagridcolumns themselves. You will need to first add a reference
>>
>>C:\Program Files\RustemSoft\DataGridViewColumns .NET 2.0 assembly\DataGridViewColumnsTrial.dll
>>
>>or something like that. then you will do a
>>
>> using Rustemsoft.DataGridViewColumns
>>
>>That should get you the intellisense you need
>>
>>( the Rustemsoft controls have to be first downloaded and installed, of course)
>>
>>http://www.softplatz.com/Info/RustemSoft.html
>>
>>To do it with straight .net
>>
>>http://msdn.microsoft.com/en-us/library/7tas5c80%28VS.80%29.aspx
>
>That example is way too specialized. There has to be a simple example of putting a combo in a grid. This CAN'T be that difficult!!!

Awww, sure it can <g>. Just want to be sure you were clear that the example you origianally cited was specifically for using the Rustemsoft third party controls.

From everything I can tell, using a cbo in a dgv pretty much means building the grid yourself, rather than dropping one on a form and setting the columnediting control type to cbo as one would expect. I think if I were going to use a lot of dgvs I'd be buying a control that would make all that a whole lot easier. ( I think Infragistics or maybe DevExpress gives one away as a sample but I may be wrong)


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform