Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Textbox Font and Fontsize in Edit Mode

Reply
Thread Tools

Textbox Font and Fontsize in Edit Mode

 
 
RockNRoll
Guest
Posts: n/a
 
      08-31-2004
How do I change the textbox font and fontsize in Edit Mode? Thanks,

-Dave


 
Reply With Quote
 
 
 
 
Raghavendra T V
Guest
Posts: n/a
 
      09-01-2004
Hi RockNRoll,

You can change the Font,fontsize for a datagrid in editmode by
using this event

Create a CSS class with some name and add the font size, font style
etc..etc..

private void DataGridName_EditCommand()
{
e.Item.CssClass = "ClassName";

}

The above code will change the style at runtime.

You can also change the style at design time.
If your columns in Datagrid are template columns then you can rightclick on
grid and click on edit column [0] , column[1] ..etc..
and then choose the controls in the grid and set the CSS style for
editItemTemplate accordingly in Css in property window.

Hope this helps you.

Thanks
Raghavendra

"RockNRoll" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How do I change the textbox font and fontsize in Edit Mode? Thanks,
>
> -Dave
>
>



 
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
Swing Font, it's Java Font? ot native? how install new font? mttc Java 2 07-03-2009 07:29 PM
Change Font Size in Edit textbox for Datagrid? =?Utf-8?B?QmxhaW5l?= ASP .Net 2 01-30-2008 01:42 PM
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
Set the width of the edit textbox after clicking on Edit link in datagrid... Sharon McCarty ASP .Net Datagrid Control 0 11-24-2004 06:41 PM



Advertisments