brightview's column (original)
defines enumeration type properties in the control
public enum DTableStateSelect
{
ShowAddnew = 1,
SaveAddnew = 2,
ShowEdit = 3,
SaveEdit = 4,
Delete = 5,
Show = 6,
List = 0
}
private DTableStateSelect _DTableState; //Define private variables of the class, the type of the variable is the enumeration defined above
public DTableStateSelect DTableState //Define attributes, the type of the variable is the enumeration defined above
{
get
{
return _DTableState;
}
set
{
_DTableState = value;
}
}
Set the control's enumeration class property
DTable1.DTableState = DTableControl.DTable.DTableStateSelect.List on the page;
of course, you can also directly select different types of properties in the property bar of the design interface.