datagrid edit textboxes

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top