Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Binding DataGrid TemplateColumns to ChildTable of DataSet

Thread Tools

Binding DataGrid TemplateColumns to ChildTable of DataSet

Axel Reimann
Posts: n/a

I'm quite frustrated because i'm stuck in a problem i couldn't solve
so far: i have a dataset, containing 9 Tables (1 master-table, 8
child-tables, with master-child-relations set). in the .aspx-page, i
have a DataGridControl, bound to the master-table of the dataset. As
long as i user bound columns in the datagrid, it's no problem to bind
them to the corresponding fields of the master-table by
My problem is to use TemplateColumns in the DataGrid, that are bound
to corresponding fields of a child-table.
This was a (unsucsessful) try:
<%# DataBinder.Eval(((DataRowView)Container.DataItem). Row.GetChildRows(<NAME_OF_RELATION>),

I tried several combinations but nothing worked!

Can anyone HELP ME ???

Thanks in advance,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looping through a formview web control .. childtable? jobs ASP .Net 0 11-10-2006 09:23 PM
Add header text dynamically in a datagrid with templatecolumns? SK ASP .Net Datagrid Control 1 02-15-2005 08:17 PM
DataGrid TemplateColumns-- how-to use with CheckBoxes? Jim Bancroft ASP .Net 3 02-10-2005 12:32 AM
Problem with datagrid and TemplateColumns =?Utf-8?B?VGltOjouLg==?= ASP .Net 1 07-28-2004 12:52 PM
Creating TemplateColumns for a grid at runtime Jeremy Chapman ASP .Net 3 07-26-2003 03:05 AM