C
Cor Ligthert [MVP]
Tom,
Normally Yes.
It is to much to explain all of course. However, know that there are
Simple controls, for which you use
Textbox1.DataBindings.Add("Text", MyDataTable,"MyDataColumn")
'where "Text" is the normal property from the textbox and can be any
property of that while you can add as well (more) other properties of that
Complex dataControls as the datagrid that have a "datasource" for which it
is very easy
Mydatagrid.DataSource = MyDataTable
Complex normal controls as the listview, for which you will normally have to
build your own extra classes to databind.
(For C# you have to set a ";" after the samples above).
I hope this gives an idea
Cor
Does controls' data binding is a better way?
Normally Yes.
It is to much to explain all of course. However, know that there are
Simple controls, for which you use
Textbox1.DataBindings.Add("Text", MyDataTable,"MyDataColumn")
'where "Text" is the normal property from the textbox and can be any
property of that while you can add as well (more) other properties of that
Complex dataControls as the datagrid that have a "datasource" for which it
is very easy
Mydatagrid.DataSource = MyDataTable
Complex normal controls as the listview, for which you will normally have to
build your own extra classes to databind.
(For C# you have to set a ";" after the samples above).
I hope this gives an idea
Cor