D
Davide Piras
Hi, I've just started using ST Datasets and I've a question:
how to get a field name (column name) from a ST DataTable contained in my ST
DataSet ?
What I mean is: should I "cable" the ColumnName as string whene I assign
DisplayMember and ValueMember of ComboBox or I can use a property of my ST
Object??
In fact, I do not like to write
mycombo.DataSource = dsPeople.PeopleDataTable;
mycombo.DisplayMember = "Name";
mycombo.ValueMember = "ID";
because if I will change the struct of my ST Objects (dsPeople and/or
PeopleDataTable), my code will still compile so there is no advantage in
using ST Objects... if I should still write FieldNames as string...
Any idea?
Thank in advantage, happy development, Davide.
how to get a field name (column name) from a ST DataTable contained in my ST
DataSet ?
What I mean is: should I "cable" the ColumnName as string whene I assign
DisplayMember and ValueMember of ComboBox or I can use a property of my ST
Object??
In fact, I do not like to write
mycombo.DataSource = dsPeople.PeopleDataTable;
mycombo.DisplayMember = "Name";
mycombo.ValueMember = "ID";
because if I will change the struct of my ST Objects (dsPeople and/or
PeopleDataTable), my code will still compile so there is no advantage in
using ST Objects... if I should still write FieldNames as string...
Any idea?
Thank in advantage, happy development, Davide.