datagrid edit textboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey all,

I have a datagrid on an asp.net page and I'm using the in-line editing
feature where you can edit a value right on the datagrid. I was wondering if
I can make the textboxes a smaller width. If so, how please?

thanks,
rodchar
 
thank you.

Alex Homer said:
One way is to specify the controls for the edit mode using a template, and
then set the width of the Texbox - for example:
<EditItemTemplate>
....
<ASP:TextBox id="txtTitle" Text='<%# Container.DataItem("Title") %>'
size="46" runat="server" /><br />
....
</EditItemTemplate>

this code is form this example:
http://www.daveandal.net/books/8900...inding/editing-data/select-edit-datalist.aspx
which has a [view source] link.


rodchar said:
Hey all,

I have a datagrid on an asp.net page and I'm using the in-line editing
feature where you can edit a value right on the datagrid. I was wondering if
I can make the textboxes a smaller width. If so, how please?

thanks,
rodchar
 
Back
Top