Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

datagrid edit box size

 
 
pleaseHelp
Guest
Posts: n/a
 
      11-19-2004
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]
Guest
Posts: n/a
 
      11-20-2004
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
http://aspnet.4guysfromrolla.com/articles/080702-1.aspx

In fact, I'd recommend that you read the entire 16-part series, it
starts with Part 1 at
http://aspnet.4guysfromrolla.com/articles/040502-1.aspx

Happy Programming!

--

Scott Mitchell
http://www.velocityreviews.com/forums/(E-Mail Removed)
http://www.4GuysFromRolla.com

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

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



Advertisments