PropertyGrid and DateTimePicker

3 posts, 0 answers
  1. Gosha
    Gosha avatar
    36 posts
    Member since:
    Aug 2010

    Posted 10 Mar 2014 Link to this post

    I am trying to add DateTimePicker to PropertyGrid but it not work! What is wrong?


    Dim startdate As New PropertyStoreItem(GetType(RadTimePicker), "Start date", DateTime.Now, "", "Dates", False)
  2. Gosha
    Gosha avatar
    36 posts
    Member since:
    Aug 2010

    Posted 10 Mar 2014 in reply to Gosha Link to this post

    I apologize for being dumb, I was supposed to write DateTime instead of RadDateTimePicker. 
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 13 Mar 2014 Link to this post

    Hi Sasa,

    I guess you have already resolved this case, but I will post a small sample here in case anyone else have the same case:
    radPropertyGrid1 = new RadPropertyGrid();
    radPropertyGrid1.Dock = DockStyle.Fill;
    radPropertyGrid1.Parent = this;
     
    PropertyStoreItem dateItem = new PropertyStoreItem(typeof(DateTime), "Start Date", DateTime.Now, "", "Dates", false);
    RadPropertyStore store = new RadPropertyStore();
    store.Add(dateItem);
    this.radPropertyGrid1.SelectedObject = store;

    Regards,
    Stefan
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
Back to Top