public CustomFieldMaster(DataRow DR) { this.CFMid = Convert.ToInt64(DR["CFMid"]); this.cid = Convert.ToInt32(DR["cid"]); this.Label = Convert.ToString(DR["Label"]); this.FieldName = Convert.ToString(DR["FieldName"]); this.DataType = Convert.ToInt32(DR["DataType"]); this.compulsory = Convert.ToInt32(DR["compulsory"]); this.active = Convert.ToInt32(DR["active"]); this.created_by = Convert.ToInt32(DR["created_by"]); this.date_created = Convert.ToDateTime(DR["date_created"]); this.date_modified = Convert.ToDateTime(DR["date_modified"]); this.customFieldList = CustomFieldList.GetByFeild(this.CFMid); }