コード例 #1
0
ファイル: UIGridColumn.cs プロジェクト: SaberZA/habanero
 ///<summary>
 /// Gets the heading for this grid column.
 ///</summary>
 ///<returns> The heading for this grid column </returns>
 public Type GetPropertyType()
 {
     if (PropDef == null)
     {
         return(ClassDef.GetPropertyType(PropertyName));
     }
     //If the Propdef has a Lookup then it is impossible for the
     // the Grid Column to know the datatype and it is not essential
     // since we will manually determine the Control type.
     // e.g. If Readonly then TextBox Column else ComboBox Column.
     if (this.PropDef.HasLookupList())
     {
         return(typeof(object));
     }
     return(PropDef.PropertyType);
 }