datagrid edit box size

P

pleaseHelp

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.
 
S

Scott Mitchell [MVP]

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
(e-mail address removed)
http://www.4GuysFromRolla.com

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

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,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top