Textbox Font and Fontsize in Edit Mode

Discussion in 'ASP .Net Datagrid Control' started by RockNRoll, Aug 31, 2004.

  1. RockNRoll

    RockNRoll Guest

    How do I change the textbox font and fontsize in Edit Mode? Thanks,

    RockNRoll, Aug 31, 2004
    1. Advertisements

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

    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.

    Raghavendra T V, Sep 1, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.