Hi to all,
I'd like to set initial value to DateTimePicker Control
programmaticall y, How I can do that?
I had tried following:
1. DataTable dt = dataLayer.GetOf fer(OfferID);
this.dtpOfferDa te.Value =
Convert.ToDateT ime(dt.Rows[0][6].ToString());
2. I tried:
this.dtpOfferDa te.Value = Convert.ToDateT ime(dt.Rows[0][6]);
It doesnt works too, shows only current date...
On the same time, for text box works fine...
this.txtOfferDa te.Text = dt.Rows[0][6].ToString();
Please help. Thanks in advance good people
I'd like to set initial value to DateTimePicker Control
programmaticall y, How I can do that?
I had tried following:
1. DataTable dt = dataLayer.GetOf fer(OfferID);
this.dtpOfferDa te.Value =
Convert.ToDateT ime(dt.Rows[0][6].ToString());
2. I tried:
this.dtpOfferDa te.Value = Convert.ToDateT ime(dt.Rows[0][6]);
It doesnt works too, shows only current date...
On the same time, for text box works fine...
this.txtOfferDa te.Text = dt.Rows[0][6].ToString();
Please help. Thanks in advance good people
Comment