The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Binding to DevExpress GridControl, column caption is not from table column description.

Last post 10-29-2007, 6:28 PM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  06-23-2007, 8:30 PM 3344

    Binding to DevExpress GridControl, column caption is not from table column description.

    I binding BusinessObject to Grid,but the grid column caption  is not from table column Description.but from column Name.

    and binding BusinessObject  to Details Form , the auto created Label.Text is not form table column Description yet.

    how can i to do this?

    Thanks!

  •  10-29-2007, 6:28 PM 6160 in reply to 3344

    Re: Binding to DevExpress GridControl, column caption is not from table column description.

    There is the Description column on the esColumnMetadata class, not sure if that would help.

     

    Code:
    string s = EmployeeMetadata.Meta().Columns[EmployeeMetadata.ColumnNames.FirstName].Description;

     

    or

     

    Code:
    Employee emp = new Employee();
    string s = emp.es.Meta.Columns[EmployeeMetadata.ColumnNames.FirstName].Description;

    Also, most grids allow you to manually set these in design time mode. 

     


    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML