Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

I will write a WebControl with sub-Property , will i do? thanks!

Mar 11 2003 10:47 PM
like the System.Web.UI.WebControls.WebControl.DataGrid, the control have some the property that have some sub-property. For example Font, ItemStyle and so on. If I written : class MyControl : WebControl { MyProperty a = new MyProperty(); public MyProperty Sub_Property { get{ return a;} set{ a = value;} } } class MyProperty { public string Name { ........ } public string Age { ......... } } The property Sub_Property can't eidt by VS.net editor. who can tell me way? thank you very much!