0
I have a system where I use a dataGridView to list the fields of a table through the property dataSource, and a textBox so that the written text serves as a filter (when I type something in textBox, use typed text to filter my table and update on dataSource of dataGridView).
I am learning C# and saw that in Visual Studio, I can create a Composite Component and wanted to create a component textBox and the dataGridView.
I started the creation with a dataGridView and a textBox and managed the new component (textBoxGrid).
Includes the new component (textBoxGrid) in my form and when I went looking for the property dataSource in the new component, it is not shown.
How do I make her visible?

I’ll test it right now. I can do it with any property?
– Italo Rodrigo
Yes you can do this with any property, including you can open the
getandset, to manipulate as you wish by insertingif, for example.– Marco Giovanni
You carry the
DataSourcein the design ofvisual studioor at runtime?– Marco Giovanni
It worked!!! Thank you very much. I press on the design.
– Italo Rodrigo
If you are going to click on the design you may need to add the attributes to the property. As is Object the property will appear but it will not be possible to change. I will change the answer.
– Marco Giovanni
blz, I’m waiting for you to change
– Italo Rodrigo
Thanks, if it’s not too much to ask, can you explain that line? -> [Attributeprovider(typeof(Ilistsource)), Defaultvalue(null), Refreshproperties(Refreshproperties.Repaint)]
– Italo Rodrigo
Let’s go continue this discussion in chat.
– Marco Giovanni