This is a migrated thread and some comments may be shown as answers.

struct and properties grid ?

1 Answer 182 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 2
Tom asked on 12 Sep 2012, 01:39 PM
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 ?

Thanks
Tom.

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 14 Sep 2012, 09:04 AM
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.

Regards,
Ivan Petrov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
PropertyGrid
Asked by
Tom
Top achievements
Rank 2
Answers by
Ivan Petrov
Telerik team
Share this question
or