Hi Nvx,
Your question doesn't have anything to do with DataSet. What you need
instead is to properly configure the ColumnStyles collection of the DataGrid
so a data column with a particular name is represented by the ComboBox
column style.

Signature
Regards,
Dmytro Lapshyn [MVP]
http://blogs.vbcity.com/DmytroL
> Hi,
> how can I change a DataColumn to ComboBox type column in a DataSet?
[quoted text clipped - 15 lines]
> With regards
> nvx
nvx - 19 Jul 2006 09:52 GMT
Thank you, Dmytro...
After posting the first question I looked at the DB in Access and found
out that there is not possible to set such a column type. Hence I
deleted the post you have replied to and posted another question (see
"How to change a DataGridViewTextBoxColumn to a
DataGridViewComboBoxColumn?") since I was not able to change it in the
DGV. Could you please give an exact line of code, which does this thing?
Thank you in advance.
With regards
nvx
Dmytro Lapshyn [MVP] napsal(a):
> Hi Nvx,
>
> Your question doesn't have anything to do with DataSet. What you need
> instead is to properly configure the ColumnStyles collection of the
> DataGrid so a data column with a particular name is represented by the
> ComboBox column style.
nvx - 19 Jul 2006 09:58 GMT
Oh, I'm sorry, I forgot to add I'm coding in C#...
nvx
nvx napsal(a):
> Thank you, Dmytro...
>
[quoted text clipped - 17 lines]
>> DataGrid so a data column with a particular name is represented by the
>> ComboBox column style.
edgarrolla@yahoo.com.br - 25 Jul 2006 15:43 GMT
Is it possible to be done in run time?
Is it actually possible to change a single cell style programmacticaly?
cheers!
> Oh, I'm sorry, I forgot to add I'm coding in C#...
>
> nvx
>
> nvx napsal(a):
Paul Jones - 25 Jul 2006 16:45 GMT
Well, it can be done with
DataGridViewCell cell = new DataGridViewComboBoxCell();
DGV.Columns["colname"].CellTemplate = cell;
There's a catch though: the new column type must be derived from the
actual type or something like that, I do not remember it exactly... If
it is possible, try to create columns of needed type and you're saved
from changing theirs type in the future. I know this solution can't be
applied to every case, but to most of them it can, I guess...
P.J.
edgarrolla@yahoo.com.br napsal(a):
> Is it possible to be done in run time?
> Is it actually possible to change a single cell style programmacticaly?
[quoted text clipped - 6 lines]
>>
>> nvx napsal(a):