GetMultiAsDataTable query

Posts   
 
    
sparmar2000 avatar
Posts: 341
Joined: 30-Nov-2003
# Posted on: 13-Jul-2005 21:41:02   

Hi, I would like to get data using GetMultiAsDataTable using the following statement:

ds.Tables.Add(AllCol.GetMultiAsDataTable(Nothing, Nothing, sortOrder))

Works fine, but the the table ends up being called Table1

I would like to table be given a name I want. Is this possible. I am also unable to find method to rename Table1 to something else. I keep looking.

Thanks in advance.

Best Regards.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 14-Jul-2005 10:20:20   

sparmar2000 wrote:

Hi, I would like to get data using GetMultiAsDataTable using the following statement:

ds.Tables.Add(AllCol.GetMultiAsDataTable(Nothing, Nothing, sortOrder))

Works fine, but the the table ends up being called Table1

I would like to table be given a name I want. Is this possible. I am also unable to find method to rename Table1 to something else. I keep looking.

Thanks in advance.

Best Regards.


Dim table As DataTable = AllCol.GetMultiAsDataTable(Nothing, Nothing, sortOrder)
table.TableName = "Foo"
ds.Tables.Add(table)

simple_smile

should work.

Frans Bouma | Lead developer LLBLGen Pro