Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3305
How to dynamically apply a style to a cell from code behind
posted

I have a xamGrid that monitors a bunch of Processes. 2 of the fields are Date time fields

if a condition exists I need to be able to set the value of one of the Datetime fields to an empty string.

I cannot do that with a date time field. I cannot use a converter here so I need a way to manipulate the UI

I also only want this manipulation to occur on the specified rows where it is needed.

any ideas?

thanks

Nick

Parents
  • 69686
    Suggested Answer
    posted

    Hello Nick,

    If your field is of type DateTime you would not be able to set the value to an empty string through code behind. If you set the value of this cell to "null" it will display the 01/01/0001.

    If you would like to do this, you could change the type to DateTime? and then you will be able to make it empty by setting it to null.

    Hope this helps

Reply Children
No Data