Databound DateTime

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

  • Posted 8 September 2017, 2:54 pm EST

    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:

    I am poonam works corporate asp.net training in ahmedabad.Software will of course still be sold on store shelves. However, most, if not all of 
    the business logic and power of these applications will reside across a set of 
    distributed applications using open Internetbased standards such as XML and HTTP.Corporate asp.net training whether you get from India or 
    UK must include nuances of corporate asp.net course modules; if you opt for asp.net expert career.

         

     

      public DateTime MyDate
            {
                get
                {
                    return DateTime.Today;
                }

             }

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

    Any ideas?

     Thanks!
  • Replied 8 September 2017, 2:54 pm EST

    Hello,

    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.

    Thanks,

    Manpreet Kaur

Need extra support?

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

Learn More

Forum Channels