locked
ObjectList, How to retrieve data from it and put result in Table format?? RRS feed

  • Question

  • User1989204087 posted
    Hi all,
    Need some help.  How to use objectList bind to a table in a Database and retrieve the result  and put it in tabular or table format?? ObjectList is what DataGrid is. However, DataGrid can display result in Tabular or table format. So, How to use ObjectList to do this??

    In Mobile phone, ObjectList will display the result in sequential order. This means thatit will display the first field, click on this field it will show the rest in sequential order in next page.

    In DataGrid, I can use  <%#Container.DataItem("FieldName")% > in Html section to retrieve the result. Can use this method on ObjectList to achieve a Table-like result format??

    like this:

    NameId       LastName    First Name     SocialSecurityNo 
    -------         -------------   ---------------      --------------------


    please help.

    Thursday, June 30, 2005 8:13 AM

All replies

  • User-95607119 posted
    Well.... many mobile devices show also tables this way you described. Tables rendering is resource costy and mobile devices usually have very few memory etc. So, if you target your system to wider audience then consider using object list as it is.
    Thursday, June 30, 2005 8:57 AM
  • User1529104781 posted
    Hi,

    You have to set "TableFields" to the fields you want to display (before binding). For example :

    ObjectList1.DataSource=ds
    ObjectList1.TableFields = "NameId;LastName;First Name;SocialSecurityNo"
    ObjectList1.DataBind()

    --
    Denis
    Friday, July 22, 2005 3:46 PM