What errors are you getting? Your basic format looks correct. Are you
certain that you have assigned the datasource using
myDataGrid.DataSource = myTable;
And then you have to bind it:
myDataGrid.DataBind();
And both these things must happen before rendering, such as in the PreRender
event or Page_Load.
If this doens't help, try posting more of your code or the errors or
indications of failure that you are receiving.
Dale
"Oney" <oz*********@yahoo.com> wrote in message
news:cc*************************@posting.google.co m...
I have two DataGrid on the same page and I fill them diffrent tables.I
created Template Columns for both DataGrid but I can not use Dynamic
Binding. It can not find columns.By the way I have to use aspx page
instead of web user control.
<%# DataBinder.Eval(Container.DataItem,"Id") %>
any idea how to use Container.DataItem?