Kevin
Tue Jul 18 10:16:50 CDT 2006
I meant, are you using a DataSource for the DataGridView columns?
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
What You Seek Is What You Get.
"nvx" <nvx2004@hotmail.com> wrote in message
news:1153221953.121776.13630@p79g2000cwp.googlegroups.com...
> Thank you very much, I'll read the document. It looks very useful.
>
> Yes, DataSource for the ComboBox items is an ArrayList of Strings.
> SortMode is set to Automatic when I programatically add the
> DataGridViewComboBoxColumn column into the DataGridView.
>
> With regards
> nvx
>
>
> Kevin Spencer wrote:
>> Are you using a DataSource for the columns? Are you setting the SortMode?
>> I
>> have found the following White Paper helpful:
>>
>>
http://download.microsoft.com/download/5/6/4/5646742C-3EB7-48F7-BFB3-CC295D618CF9/DataGridView%20FAQ.doc
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> Professional Chicken Salad Alchemist
>>
>> What You Seek Is What You Get.
>>
>>
>>
>> "nvx" <nvx2004@hotmail.com> wrote in message
>> news:1153201338.921853.284880@35g2000cwc.googlegroups.com...
>> > Thank you for the information. I'll try to go through the code and find
>> > the problem.
>> >
>> > One more thing: is there any other property of
>> > DataGridViewComboBoxColumn columns that HAS to be set to some value for
>> > this to work (except the DataGridViewColumnSortMode.Automatic; I'm
>> > generating the DataGridViewComboBoxColumn columns on the fly...)?
>> >
>> > Many thanks...
>> >
>> > With regards
>> > nvx
>> >
>> >
>> > Kevin Spencer wrote:
>> >> Yes, it's possible, but I don't know why you're having a problem.
>> >>
>> >> --
>> >> HTH,
>> >>
>> >> Kevin Spencer
>> >> Microsoft MVP
>> >> Professional Chicken Salad Alchemist
>> >>
>> >> What You Seek Is What You Get.
>> >>
>> >>
>> >> "nvx" <nvx2004@hotmail.com> wrote in message
>> >> news:1153162388.647427.30240@35g2000cwc.googlegroups.com...
>> >> > Hi,
>> >> > is it possible to sort DataGridViewComboBoxColumn type columns by
>> >> > clicking on the header cell (in DataGridViewColumnSortMode.Automatic
>> >> > case)? It doesn't seem to work or there is a bug in my code. There
>> >> > should be an arrow sign (triangle) in the header cell after clicking
>> >> > on
>> >> > it, but there doesn't appear any...
>> >> >
>> >> > Thanks for any help.
>> >> >
>> >> > With regards
>> >> > nvx
>> >> >
>> >
>