This is a migrated thread and some comments may be shown as answers.

[Solved] DataTable as datasource for DetailTable

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dean
Top achievements
Rank 1
Dean asked on 05 Mar 2010, 10:31 PM
I've read this: http://www.telerik.com/help/aspnet-ajax/grdhierarchicaldatabindingusingdetailtabledatabind.html
as well as other articles and posts, but haven't seen an example of this. I know that it works for a grid with no heirarchy.

Can I use a data table as the datasource for a detailtable?
E.g. under DetailTableDataBind

 

Dim

 

myDataTable As DataTable = New DataTable()

 

 

 

Dim

 

dc1 As New DataColumn

 

 

dc1.columnname= "xyz"

 

Dim

 

row1 As DataRow

 

row1 = myDataTable.NewRow

row1(0) =

"Testing"

 

 

 

 

myDataTable.Rows.Add(row1)

 

e.DetailTableView.DataSource = myDataTableUnderReview

1 Answer, 1 is accepted

Sort by
0
Dean
Top achievements
Rank 1
answered on 08 Mar 2010, 10:56 PM
I've figured this out. Yes, it is possible.
Tags
Grid
Asked by
Dean
Top achievements
Rank 1
Answers by
Dean
Top achievements
Rank 1
Share this question
or