>>>item里面的一个hidden里面的值来决定
what kind of hidden value? is it obtained through the DataItem for the DataList?
in DataList''s OnItemDataBound
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
object o = DataBinder.Eval(e.Item.DataItem,"SomeField");
DataGrid dg = (DataGrid)e.Item.FindControl("YourDataGridID");
dg.DataSource = GetDataSource(o);
dg.DataBind();
}
what kind of hidden value? is it obtained through the DataItem for the DataList?
in DataList''s OnItemDataBound
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
object o = DataBinder.Eval(e.Item.DataItem,"SomeField");
DataGrid dg = (DataGrid)e.Item.FindControl("YourDataGridID");
dg.DataSource = GetDataSource(o);
dg.DataBind();
}