PC Review


Reply
Thread Tools Rate Thread

DataGrid and Combo

 
 
Uri Dimant
Guest
Posts: n/a
 
      26th Nov 2003
Hello,friends
How do I make combobox within Data Grid?
Does anyone have an examples?


 
Reply With Quote
 
 
 
 
One Handed Man
Guest
Posts: n/a
 
      26th Nov 2003
I dont have an example to hand. However, I have done this before, what you
need to do is to add a combo box control to the dataGrid usuing the
AddControl method of the datagrid and then position the comboBox over the
specified cells. This requires you to add event handlers and to also use the
forms repaint method . Effectively, what you are doing is masking the
underlying cell's with the combobox and then on changeSelectedItem event
transfer the data to the grid.

Do a search ( you can do it jus as well as we can ) on Google and find the
answer. Once you have a working model, you could post it here for all to
use. In the meantime, come back with any specific questions as you attempt
to do this,.

Regards - OHM


Uri Dimant wrote:
> Hello,friends
> How do I make combobox within Data Grid?
> Does anyone have an examples?



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      26th Nov 2003
* "Uri Dimant" <(E-Mail Removed)> scripsit:
> How do I make combobox within Data Grid?
> Does anyone have an examples?


ComboBox in DataGrid:

<http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      26th Nov 2003
Hi,

Also
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Ken
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:bq20ll$1tj2g3$(E-Mail Removed)...
> * "Uri Dimant" <(E-Mail Removed)> scripsit:
> > How do I make combobox within Data Grid?
> > Does anyone have an examples?

>
> ComboBox in DataGrid:
>
> <http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q>
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid combo box selection not showing in datagrid JL3574 l Microsoft C# .NET 0 19th Oct 2005 05:47 PM
Combo Box in a datagrid Dave Microsoft ASP .NET 1 21st Jun 2004 07:42 AM
Combo box in DataGrid Arpan Bhatia Microsoft Dot NET Framework Forms 3 6th Jan 2004 10:29 PM
Is this a datagrid/combo bug??? Jan Nielsen Microsoft Dot NET Framework Forms 3 14th Nov 2003 06:21 PM
Combo Box in DataGrid Elmer Microsoft Dot NET Framework Forms 2 8th Oct 2003 10:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 PM.