Click here to Skip to main content
15,921,028 members
Home / Discussions / C#
   

C#

 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen4-Dec-06 5:09
Mohsen4-Dec-06 5:09 
GeneralRe: Asynchronous reading and writing text files Pin
Mohsen6-Dec-06 22:11
Mohsen6-Dec-06 22:11 
QuestionDatagrid view keyboard capture Pin
~~~Johnny~~~28-Nov-06 15:47
~~~Johnny~~~28-Nov-06 15:47 
AnswerRe: Datagrid view keyboard capture Pin
Nader Elshehabi28-Nov-06 23:15
Nader Elshehabi28-Nov-06 23:15 
QuestionDatagrid rows Pin
Naji.A28-Nov-06 15:36
Naji.A28-Nov-06 15:36 
AnswerRe: Datagrid rows Pin
hanjian28-Nov-06 17:13
hanjian28-Nov-06 17:13 
GeneralRe: Datagrid rows Pin
Naji.A28-Nov-06 17:26
Naji.A28-Nov-06 17:26 
QuestionData Binding to a IBindableComponent (ComboBox/ListBox) Pin
Dowfen28-Nov-06 12:54
Dowfen28-Nov-06 12:54 
Hi All,

I'm having the worst time trying to bind data to a IBindableComponent. I can bind things fine to a Data Grid View using:

IBindableComponent.DataBindings.Add("DataSource", IList, "MyTable")

But when I do the same thing where the IBindableComponent is a ComboBox:

this._bindableControl.DataBindings.Add( "DataSource", _bindingSource, "Value", true );

It adds it to the combo box's data bindings but does not bind it to the "DataSource" property. Very frustrating. I should note that unless I put in the "true" for "Formatting enabled", it throws an exception saying that the data source needs to be of type "IList" or "IListSource", but guess what, it is!

The "_bindingSource" is a class which implements "IListSource" and returns a "BindingList" of "ItemList" objects. The "Value" data member property that I'm supplying is the "Value" property of the "ItemList" object. This seems like the right approach to me, especially considering the end use of this will be for application developers who need to supply special formatting to what needs to be displayed in the combo box. I've tried using a BindingSource, and basically every other combination I can think of. I don't want to have to implement IList either, that would be extremely messy and unnecessary, in my opinion.

I really want to try and use the interface for this and not cast the object to what it really is. When I do that, it does work, but I want to avoid it at all costs.

Thanks in advance for any help anyone is able to provide. I would really appreciate solving this problem.

Eric
AnswerRe: Merge two files Pin
Paul Conrad28-Nov-06 12:32
professionalPaul Conrad28-Nov-06 12:32 
QuestionSplash screen time out? Pin
amatbrewer28-Nov-06 11:53
amatbrewer28-Nov-06 11:53 
AnswerRe: Splash screen time out? Pin
Amar Chaudhary28-Nov-06 12:41
Amar Chaudhary28-Nov-06 12:41 
AnswerRe: Splash screen time out? Pin
Nader Elshehabi28-Nov-06 22:56
Nader Elshehabi28-Nov-06 22:56 
GeneralRe: Splash screen time out? Pin
amatbrewer29-Nov-06 4:46
amatbrewer29-Nov-06 4:46 
QuestionHow to Pass Paramaters to CrystalReports ? Pin
hdv21228-Nov-06 11:43
hdv21228-Nov-06 11:43 
QuestionStupid (IMHO) Visual Studio Issue Pin
Jamie Nordmeyer28-Nov-06 11:04
Jamie Nordmeyer28-Nov-06 11:04 
AnswerRe: Stupid (IMHO) Visual Studio Issue Pin
Amar Chaudhary28-Nov-06 12:51
Amar Chaudhary28-Nov-06 12:51 
GeneralRe: Stupid (IMHO) Visual Studio Issue Pin
Jamie Nordmeyer28-Nov-06 12:54
Jamie Nordmeyer28-Nov-06 12:54 
GeneralRe: Stupid (IMHO) Visual Studio Issue Pin
Amar Chaudhary28-Nov-06 13:23
Amar Chaudhary28-Nov-06 13:23 
Questionconnecting to oracle 10g Pin
hadad28-Nov-06 10:41
hadad28-Nov-06 10:41 
AnswerRe: connecting to oracle 10g Pin
Paul Conrad28-Nov-06 13:28
professionalPaul Conrad28-Nov-06 13:28 
AnswerRe: connecting to oracle 10g Pin
User 58385228-Nov-06 13:57
User 58385228-Nov-06 13:57 
QuestionHow do you customize your applications for clients? Pin
snorkie28-Nov-06 10:34
professionalsnorkie28-Nov-06 10:34 
AnswerRe: How do you customize your applications for clients? Pin
Eduard Keilholz28-Nov-06 20:27
Eduard Keilholz28-Nov-06 20:27 
GeneralRe: How do you customize your applications for clients? Pin
snorkie29-Nov-06 5:34
professionalsnorkie29-Nov-06 5:34 
QuestionGridView losing its dataset Pin
Abbas8228-Nov-06 8:00
Abbas8228-Nov-06 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.