PropertyGrid fails to group a property marked as being in Category Behavior.
-
Paw Jershauge wrote:
Try display this in the PropertyGrid.
I've tried using your code, and it seems to work;
public partial class MainForm : Form
{
PropertyGrid grid = new PropertyGrid();
Demo myDemo = new Demo();public MainForm() { InitializeComponent(); grid.Dock = DockStyle.Fill; grid.SelectedObject = myDemo; Controls.Add(grid); }
}
public class Demo
{
[Category("Behavior")]
public int Total
{
get;
set;
}
}Are you inheriting from
Object
, as the snippet suggests?I are Troll :suss:
What kind of OS er you using ??? also Windows 7 64bit ??? I have made a screendump. take a look here ScreenDump
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
What kind of OS er you using ??? also Windows 7 64bit ??? I have made a screendump. take a look here ScreenDump
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Paw Jershauge wrote:
What kind of OS er you using ??? also Windows 7 64bit ???
Windows XP, 32 bit. I'm getting a category-heading as expected, both with .NET 3.5 as with 4.0. Is it only reproducable on 64-bit Weven?
I are Troll :suss:
Dont know, will look into it tomorrow on work... but its kind of funny dont you think ? ;) I think i will try different kinds of OS's and 32 & 64 bit versions to see if i can get the fault. But still i dont know why... i have asked microsoft, but still no answer...
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Dont know, will look into it tomorrow on work... but its kind of funny dont you think ? ;) I think i will try different kinds of OS's and 32 & 64 bit versions to see if i can get the fault. But still i dont know why... i have asked microsoft, but still no answer...
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Paw Jershauge wrote:
Dont know, will look into it tomorrow on work... but its kind of funny dont you think ?
That it is - I'm curious what caused it.
Paw Jershauge wrote:
i have asked microsoft, but still no answer...
Over Microsoft Connect?
Yes over Connect... the reason I posted it here, was to see if others had the same experience. When i get the answer i will post it here.
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Paw Jershauge wrote:
Dont know, will look into it tomorrow on work... but its kind of funny dont you think ?
That it is - I'm curious what caused it.
Paw Jershauge wrote:
i have asked microsoft, but still no answer...
Over Microsoft Connect?
Just a short follow up: The same happens on a Vista 64 bit. So the error/bug is now confirmed on the following OS: - Windows 7 (64 bit) - Vista (64 bit) Its running correctly on (No bug): - Windows 7 (32 bit) - Vista (32 bit) - Xp (32 bit)
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Just a short follow up: The same happens on a Vista 64 bit. So the error/bug is now confirmed on the following OS: - Windows 7 (64 bit) - Vista (64 bit) Its running correctly on (No bug): - Windows 7 (32 bit) - Vista (32 bit) - Xp (32 bit)
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Ok so heres the real bug, although its not really a bug, its more a culture thing. When running the propertygrid in the danish language, the following CategoryAttribute will be translated: Category("Appearance") = Udseende Category("Behavior") = Type (the correct word for this would be "adfærd" or "opførsel" and NOT Type) Category("Data") = Data Category("Font") = Skrifttype Category("List") = Oversigt (the correct word for this would be "List" or "Liste" and NOT Oversigt) Category("Misc") = Diverse Category("Position") = Placering Category("Scale") = Skalering Category("Text") = Tekst I didnt consider the culture thing because translating Behavior to danish is not Type I've posted the information on my blog here: C# and I[^]
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Ok so heres the real bug, although its not really a bug, its more a culture thing. When running the propertygrid in the danish language, the following CategoryAttribute will be translated: Category("Appearance") = Udseende Category("Behavior") = Type (the correct word for this would be "adfærd" or "opførsel" and NOT Type) Category("Data") = Data Category("Font") = Skrifttype Category("List") = Oversigt (the correct word for this would be "List" or "Liste" and NOT Oversigt) Category("Misc") = Diverse Category("Position") = Placering Category("Scale") = Skalering Category("Text") = Tekst I didnt consider the culture thing because translating Behavior to danish is not Type I've posted the information on my blog here: C# and I[^]
With great code, comes great complexity, so keep it simple stupid...:-\ :-\
-
Cool, good to have it logged. Let's hope it'll be rectified in the next update :)
I are Troll :suss:
Well I found since I just downloaded the VS 2010 RTM, that its corrected in the framework 4.0, but having thats said, I dont know if danish version will be corrected... hehe lets see when that come out.
With great code, comes great complexity, so keep it simple stupid...:-\ :-\