PC Review


Reply
Thread Tools Rate Thread

c# bound a dataset to a datgridview with combobox

 
 
gba
Guest
Posts: n/a
 
      8th Jan 2007
I have a dataset ontianing 3 columns (name,properties,type)

I'm able to bound this dataset to a datagridview my problem is for the
type column.
What I like to have is a combobox containing tree choice
(selection1,selection2,selection3)

the issue is my dataset do not contain the collection of the 3 item but
only the selected one.


but I I click on the cell i like to simply have a combobox with my 3
choices.

any idea of how to achive it any help will be very useful and
appreciate

Thanks in advance
Gilles

 
Reply With Quote
 
 
 
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      8th Jan 2007
HI,

"gba" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a dataset ontianing 3 columns (name,properties,type)


You meant a DataTable right?, a dataset only contains tables, are the tables
the one that contains columns.

> I'm able to bound this dataset to a datagridview my problem is for the
> type column.
> What I like to have is a combobox containing tree choice
> (selection1,selection2,selection3)


I don't think there is such a bound column, you would have to define yours
using a TemplateColumn




--
Ignacio Machin
machin AT laceupsolutions com


 
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
Bound combobox j_gold Microsoft Access VBA Modules 6 8th Oct 2009 07:55 PM
Getting the text from a bound combobox. Jim Wooley Microsoft VB .NET 4 30th Jun 2006 10:03 PM
Why doesn't changing the position in a table change the position of the DatGridView that's bound to it? Sam Malone Microsoft VB .NET 2 2nd Jun 2006 02:40 PM
Bound Combobox Updating Sreppohcdoow Microsoft ADO .NET 4 28th Mar 2006 04:06 PM
get the row of a dataset bound to a combobox =?Utf-8?B?RmlsaXAgRGUgQmFja2Vy?= Microsoft ADO .NET 3 15th Jan 2005 11:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:25 AM.