How to set textboxes width when detailsview is in Edit Mode?

Hi, I'm using vs2013, web form and C#.
In default readonly mode, I set the header to 15% of width, that's first column.  The 2nd column then by default is 85%.  I only have 2 columns.  All text displayed to the max length in the 2nd column, no problem.

I set datasource to a data table object that I created and populated with a web service call.  I do not have each bound filed identified in my code.

In code, when I set the control to Edit mode, the 1st column still appears to be 15% and 2nd column 85% but all the textboxes in 2nd column is too short.  How can I specify for these text boxes to use the entire 2nd column or most of it?
Thank you.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

if you have boundfield in aspx, try using <ControlStyle Width="100%" /> for the textbox. otherwise,

 protected void theDetailsView_DataBound(object sender, EventArgs e)
            if (theDetailsView.CurrentMode.Equals(DetailsViewMode.Edit))
                TextBox tbox = theDetailsView.Rows[1].Cells[1].Controls[0] as TextBox;
                if (tbox != null)
                    tbox.Width = new Unit(100, UnitType.Percentage);
                    //tbox.TextMode = TextBoxMode.MultiLine;
                   // tbox.Rows = 3;

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lapuccaAuthor Commented:
That worked very well.  Thank you.
Glad it helped!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.