H
Homa
I've create a custom DataGridColumnStyle and when I try to assign a
DefaultValue to a property, it doesn't seems to have any effect.
Here is the code:
[DefaultValue(10)]
public int Test
{
get{return 0;}
set{}
}
the default value shown is 0 instead.
I also tried [DefaultValue(typeof(int), "10")] with no effect.
Thanks,
Homa Wong
DefaultValue to a property, it doesn't seems to have any effect.
Here is the code:
[DefaultValue(10)]
public int Test
{
get{return 0;}
set{}
}
the default value shown is 0 instead.
I also tried [DefaultValue(typeof(int), "10")] with no effect.
Thanks,
Homa Wong