F
FUnky
(.Net 1.1)
Hi All,
This concerns adding properties to a propertygrid dynamically. The situation
is as follows:
I have a property bag from where I display properties as name/value pairs in
my property grid. To add a property, I simply do the following (on a 'Add'
Button Click):
CustomProperty myProp = new
CustomProperty(txtName.Text,txtValue.Text,chkReadOnly.Checked,true,txtGroup.Text);
myProperties.Add(myProp);
pGrProperties.Refresh();
Here, the property with the name(txtName.Text) gets added to the
group(txtGroup.Text).
Consider the scenario when I add a property with name 'some_name' to group
'G2'. It gets added, no problem. Then I add a property with name
'some_other_name' to group 'G1'. In this case, I need G1 to appear after G2,
but what happens is exactly the opposite. The groups seem to appear
alphabetically, even if I set PropertySort to Categorized and not to
CategorizedAlphabetical.
I would greatly appreciate any solution to this problem.
FUnky.
Hi All,
This concerns adding properties to a propertygrid dynamically. The situation
is as follows:
I have a property bag from where I display properties as name/value pairs in
my property grid. To add a property, I simply do the following (on a 'Add'
Button Click):
CustomProperty myProp = new
CustomProperty(txtName.Text,txtValue.Text,chkReadOnly.Checked,true,txtGroup.Text);
myProperties.Add(myProp);
pGrProperties.Refresh();
Here, the property with the name(txtName.Text) gets added to the
group(txtGroup.Text).
Consider the scenario when I add a property with name 'some_name' to group
'G2'. It gets added, no problem. Then I add a property with name
'some_other_name' to group 'G1'. In this case, I need G1 to appear after G2,
but what happens is exactly the opposite. The groups seem to appear
alphabetically, even if I set PropertySort to Categorized and not to
CategorizedAlphabetical.
I would greatly appreciate any solution to this problem.
FUnky.