S
Sébastien
Hi,
I would like to know if there is any was to add an empty string in a
ComboBox when that ComboBox is linked on a DataSet to display list of
values.
I tryed to create a new ComboBox control and overrides SetItemsCore function
to add an empty string (" ") to items list. I get an error message saying I
can't add data to this list.
Then I tryed to create a new ArrayList object and I just added an empty
string to it. Then I send it to my parent calling
MyBase.SetItemsCore(myArray), but It still show me the DataSource datas.
I used a breakpoint to be sure this function was entered :
Protected Overrides Sub SetItemsCore(ByVal items As
System.Collections.IList)
So if anyone have an idea, I would like to hear about it.
Thank you.
I would like to know if there is any was to add an empty string in a
ComboBox when that ComboBox is linked on a DataSet to display list of
values.
I tryed to create a new ComboBox control and overrides SetItemsCore function
to add an empty string (" ") to items list. I get an error message saying I
can't add data to this list.
Then I tryed to create a new ArrayList object and I just added an empty
string to it. Then I send it to my parent calling
MyBase.SetItemsCore(myArray), but It still show me the DataSource datas.
I used a breakpoint to be sure this function was entered :
Protected Overrides Sub SetItemsCore(ByVal items As
System.Collections.IList)
So if anyone have an idea, I would like to hear about it.
Thank you.