struct and properties grid ?

2 posts, 0 answers
  1. Tom
    Tom avatar
    11 posts
    Member since:
    Jan 2012

    Posted 12 Sep 2012 Link to this post

    Afternoon all,
    I have an array of struct's which creates a tilemap, on click I'm able to populate my own textboxes from the selected struct

    so for example

    tbData1.Text = tilemap[index].Data1;

    populates the textbox with data(string), however I've tried to move to using your property grid, I've added the property grid to my form and in the same event that populates my own textbox I've added

    rpbTileProperty.SelectedObject = tilemap[index]

    but the property grid remains empty(doesnt detect the public variables or there values), I don't really want to change from using a struct to a class if possilbe. am I doing something wrong or does the property grid not support struct's ?

  2. Ivan Petrov
    Ivan Petrov avatar
    715 posts

    Posted 14 Sep 2012 Link to this post

    Hello Tom,

    Thank you for writing.

    I tested the RadPropertyGrid and it shows structs' properties without any issues. I would kindly ask you to send me your project or an example where you can reproduce the issue so I can investigate it further. You should open a new support ticket to be able to attach files.

    I am looking forward to your reply.

    Ivan Petrov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top