Hi All,
I am new to c#.net implementation and i need to implement property grid where few properties are normal ones and few have ellipses and drop down list. All this is implemented and works fine but now i have one more property where on click of the ellipse, form needs to be shown which will have a tree view and based on the selection of nodes comma separated string needs to be set as the property value. Can some one show me some sample code or any kind of help is highly appreciated and Thank you all in Advance.
-Jeevan
Loading
emre akpinarPosted May 10, 2006, 6:57 AM
FAbos DeimosPosted May 9, 2006, 3:02 AM
[TypeConverter(typeof(ExpandableObjectConverter))]
public class CustomClass
{
private TreeNode[]tree;
public TreeNode[] Nodes
{
get{return tree;}
set{tree=value;}
}
public void Form1_Load(object sender ,EventArgs e)
{
this.propertyGrid1.SelectedObject=new CustomClass();
}
}
FAbos DeimosPosted May 8, 2006, 7:45 AM
http://www.codeproject.com/cs/miscctrl/bending_property.asp (in C#)
Jeevan ReddyPosted May 6, 2006, 5:04 AM
Thanks for your reply but enumeration or collections are used for drop down property values but what i need is on click of a button in property box I shud be able to open a dialog form which will have a tree view and whatever nodes selected into that should get me , separated string value.
Let me know if i am wrong anywhere in interpreting ur reply. and also if u can put a working example on this that would be of great help to me.
Thanks in Advance.
-Jeevan
FAbos DeimosPosted May 4, 2006, 6:15 AM
It is a enumeration type
//Here is a code
enum DataMember
{
DataSource,
DataMember,
Text,
}
[Description Attribute("DataBindings")]
public enum DataBindings
{
DataSource source;
return source;
}