DataGrid - Editable Column Format Question

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

Hello,

I am working with an editable column in a datagrid for the first time.

I am using VisualStudio.Net 2003 on the ASP 1.1 framework.

I am having trouble with setting the width of a text box that is generated
once the 'Edit' button is clicked.

The text box that is generated seems to have a default witdth setting. Below
is my attemp to alter that setting. How should I do it?

public void Update(Object sender, DataGridCommandEventArgs e)

{

bizObj = new IB_Biz();

TextBox objValue;


string strAcct, strValue;

objValue = (TextBox)e.Item.Cells[1].Controls[0];

objValue.Columns=5; //HERE IS WHERE I TRY TO ALTER THE WIDTH, BUT IT HAS
NO EFFECT

strAcct = e.Item.Cells[0].Text;

strValue = objValue.Text;

bizObj.Update_Value(strAcct, strValue);

DGR_List.EditItemIndex = -1;

LoadData();

}





Thanks in advance,

Frank
 
Back
Top