R
Russ
I'm getting a little frazzled here. I have been trying to figure out
how to extract the data from my dynamically created Multipage controls
for about a week now!
Depending on data from a web service, I am adding one or more Tabs and
PageViews to a design time created TabStrip and MultiPage control.
Each PageView then gets a number of TextBoxes. Here is how I am
creating the controls:
for (int i=0; i < Ed.nRates; ++i)
{
// Ed is the data from the web service.
// Ed.Rd is an array of data, one element for each rate
CEmpRateData ERate = Ed.Rd ;
if (i != 0)
{
TabSeparator ts = new TabSeparator ();
TabStrip1.Items.Add (ts);
}
Tab t = new Tab ();
t.Text = "Rate " + (ERate.m_Rate + 1);
TabStrip1.Items.Add (t);
PageView pv = new PageView ();
MultiPage1.Controls.Add (pv);
AddField (pv, "Regular Hours", 115,20, 40, 10);
AddField (pv, "Overtime Hours", 115,50, 40, 10);
how to extract the data from my dynamically created Multipage controls
for about a week now!
Depending on data from a web service, I am adding one or more Tabs and
PageViews to a design time created TabStrip and MultiPage control.
Each PageView then gets a number of TextBoxes. Here is how I am
creating the controls:
for (int i=0; i < Ed.nRates; ++i)
{
// Ed is the data from the web service.
// Ed.Rd is an array of data, one element for each rate
CEmpRateData ERate = Ed.Rd ;
if (i != 0)
{
TabSeparator ts = new TabSeparator ();
TabStrip1.Items.Add (ts);
}
Tab t = new Tab ();
t.Text = "Rate " + (ERate.m_Rate + 1);
TabStrip1.Items.Add (t);
PageView pv = new PageView ();
MultiPage1.Controls.Add (pv);
AddField (pv, "Regular Hours", 115,20, 40, 10);
AddField (pv, "Overtime Hours", 115,50, 40, 10);