Getting Cell Formatting

3 posts, 0 answers
  1. Neil N
    Neil N avatar
    75 posts
    Member since:
    Aug 2012

    Posted 11 Apr 2013 Link to this post

    Is it possible in code-behind to get formatting info (e.g., font name, font size, font colour, bold, justification, cell colour) of a specific cell?
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 11 Apr 2013 Link to this post

    Hi Neil N,

    If you assign a certain css class to the specific cell you are interested in, you will be able to assign and edit this css style in the code behind. Here is a link that should help you get started:
    http://stackoverflow.com/questions/4376534/how-to-get-css-styles-in-code-behind-asp-net

    Hopefully this helps,
    Master Chief
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Neil N
    Neil N avatar
    75 posts
    Member since:
    Aug 2012

    Posted 11 Apr 2013 Link to this post

    Not as simple as I hoping but thanks.  I'm actually working on Export to Excel code.  Got the export looking pretty good and was hoping to transfer some of the styles over.  However, I think I'll stick with putting in some default formatting in Excel. Thanks again.
Back to Top