471,354 Members | 1,279 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

BindingSource ?

Hey
I tried to use bindingSource created by wizard from dataGridView. I set it
to bind data from my class I have public property "Source" that returns list
of objects with property of "SampleText". Wizard created bindingDataSource
object, and a column in my dataGridView but when I run this it doesn't seems
to execute any data. I tried to bind dataGridView.DataSource to my object
manually it works perfectly ;) I also tried to bind dataGridView.DataSource
= myBindingSource; but it doesn't work at all.
Jarod

Dec 19 '05 #1
2 6114
"Jarod" <bl*****@NOSPAM.gazeta.pl> a écrit dans le message de news:
%2****************@TK2MSFTNGP11.phx.gbl...

| I tried to use bindingSource created by wizard from dataGridView. I set it
| to bind data from my class I have public property "Source" that returns
list
| of objects with property of "SampleText". Wizard created
bindingDataSource
| object, and a column in my dataGridView but when I run this it doesn't
seems
| to execute any data. I tried to bind dataGridView.DataSource to my object
| manually it works perfectly ;) I also tried to bind
dataGridView.DataSource
| = myBindingSource; but it doesn't work at all.

You must connect the DataSource property of the BindingSource to a valid
list of the type in the BindingSource. You have to do this in code in the
constructor of the form, or similar.

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Dec 19 '05 #2
> You must connect the DataSource property of the BindingSource to a valid
list of the type in the BindingSource. You have to do this in code in the
constructor of the form, or similar.


Thanks a lot :) When you work with wizard you expect he will do everything
for you ;)
Jarod

Dec 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by silesius | last post: by
5 posts views Thread by jehugaleahsa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.