Databound DateTime

Posted by: patel78601 on 8 September 2017, 2:54 pm EST

  • Posted 8 September 2017, 2:54 pm EST

    <font face="arial,helvetica,sans-serif"><b>I've subclassed the DateTimeCellType, so I can overwrite the
    "PaintCell" method.   The spreadsheet is then data bound to a class with
    a datetime property.   In the example below the value never changes:

    <font face="arial,helvetica,sans-serif"><b>I am poonam works corporate training in ahmedabad.Software will of course still be sold on store shelves. However, most, if not all of </b></font></pre>
    <font face="arial,helvetica,sans-serif"><b>the business logic and power of these applications will reside across a set of </b></font>
    <font face="arial,helvetica,sans-serif"><b>distributed applications using open Internetbased standards such as XML and HTTP.Corporate training whether you get from India or </b></font>
    <font face="arial,helvetica,sans-serif"><b>UK must include nuances of <span></span>corporate course modules; if you opt for expert career.</b></font>
    <p><font color="#0000ff">     


    <font color="#0000ff"> </font><font size="1" color="#0000ff"> public DateTime MyDate
                    return DateTime.Today;
                }</font><font color="#0000ff">

    <font size="1" color="#0000ff">         } </font>

    I'm not sure why PaintCell is being called every time, as if the data were changing.  

    Any ideas?

  • Replied 8 September 2017, 2:54 pm EST


    I would like you to know that the PaintCell method is called when the cell is not in edit mode, and is called for each cell in the Spread. In case all the cells in your grid are of DateTimeCellType then the method will be called for each cell. However, I am not able to understand your query, when you say that it is called every time, could you please elaborate your issue further so that I can help you resolve it.


    Manpreet Kaur

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels