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
75
[URGENT]: Cannot bind DateTime to UltraGrid (value not showing)
posted

I'm using UltraGrid (v14.2.20142.2092), and binding to a collection of objects that have datetime properties. These are not being displayed on the grid, but the other non datetime properties are. How do I bind DateTime properties to an Ultragrid and have it displayed in a format that I specify.

Example:

class MyObject {

  int Key {get; set;}

  DateTime Date {get; set;}

}

var listToBind = new List<MyObject>();

listToBind.Add(...)

this.UltraGrid1.SetDataBinding(listToBind, string.Empty);

NOTE***

Please provide example code to achieve what I am trying to do.