Hi, Could anyone tell me the best way to implement a propertygrid?
currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader:
[DefaultPropertyAttribute("ObjectTypeID")]
public class ObjectType
{
private int _objTypeID;
private int _stateType;
private int _state;
[CategoryAttribute("Object State Defaults"), DescriptionAttribute("Object type ID")]
public int ObjectTypeID
{
get
{
return _objTypeID;
}
set
{
_objTypeID = value;
}
}
[CategoryAttribute("Object State Defaults"), DescriptionAttribute(" state type of Object type")]
public int StateType
{
get
{
return _stateType;
}
set
{
_stateType = value;
}
}
[CategoryAttribute("Object State Defaults"), DescriptionAttribute("state of object type")]
public int State
{
get
{
return _state;
}
set
{
_state = value;
}
}
}
Thanks in advanced
Chris