Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > datagrid edit box size

Thread Tools

datagrid edit box size

Posts: n/a
I've created my first datagrid box and have all of the font set to verdana
font size 7. When my editable column is selected it appears in a textbox
that is smaller than the column of data I have displayed and the text is
much larger - therefore one needs to scrolls to see everything in the edit
box. I've been searching for how to make the edit text box larger and how to
resize the font in the edit box but just haven't been able to find it. If
one of you would be so kind and direct me how to make these changes, I would
really appreciate it!

Many thanks.

Reply With Quote
Scott Mitchell [MVP]
Posts: n/a
The short answer is that you need to use a TemplateColumn and specify
the TextBox's attributes in the <EditItemTemplate>. I discuss how to do
this in the following article:

An Extensive Examination of the DataGrid Web Control: Part 7

In fact, I'd recommend that you read the entire 16-part series, it
starts with Part 1 at

Happy Programming!


Scott Mitchell Removed)

* When you think ASP.NET, think!
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
Edit All Function for DataGrid, and Moving the Edit Function in a DataGrid Schultz ASP .Net 3 02-14-2005 04:47 AM
size of text box on datagrid edit Rod Snyder ASP .Net 0 06-18-2004 03:02 PM