Hi all,
(Using vs 2008)
I've just started working with datagridviews, and am trying to set them up so they're reading live data. I'd added a datatable to the dataset, and when that datatable is created, it auotmaically creates a TableAdapter (I'm starting to getting confused...3 objects and all I wanted was one table...a view actually).
Anyway, in Properties of the dgv, I choose the dataTable. Yet now there's a fourth object, a BindingSource--which I can't ever really see in the Project Explorer, it's just sort of a mysterious thing that appears and I have no idea why it's there.
So everything works, and that's not the question. I've read until I was blue in the face about these objects from Microsoft's docs, and what I'm really hoping is that someone can either point me to some 'Normal human readable' text about the why's and what's of these four objects, or mabye give me a quick primer on how they relate?
I think I understand the "DataSet", that seems to be just a graphical container/namespace for one's dataTables.
What I don't get is the relationship and difference between DataTable, TableAdapter, and BindingSource. They seem almost interchangeable but in code and in various controls' properties it seems you have to use a specific one and it just seems somewhat redundant.
Thanks for any help.
--Jim
(Using vs 2008)
I've just started working with datagridviews, and am trying to set them up so they're reading live data. I'd added a datatable to the dataset, and when that datatable is created, it auotmaically creates a TableAdapter (I'm starting to getting confused...3 objects and all I wanted was one table...a view actually).
Anyway, in Properties of the dgv, I choose the dataTable. Yet now there's a fourth object, a BindingSource--which I can't ever really see in the Project Explorer, it's just sort of a mysterious thing that appears and I have no idea why it's there.
So everything works, and that's not the question. I've read until I was blue in the face about these objects from Microsoft's docs, and what I'm really hoping is that someone can either point me to some 'Normal human readable' text about the why's and what's of these four objects, or mabye give me a quick primer on how they relate?
I think I understand the "DataSet", that seems to be just a graphical container/namespace for one's dataTables.
What I don't get is the relationship and difference between DataTable, TableAdapter, and BindingSource. They seem almost interchangeable but in code and in various controls' properties it seems you have to use a specific one and it just seems somewhat redundant.
Thanks for any help.
--Jim