Thanks Alvin,
That got me pointed in the right direction. A little trouble though.
With this code (below), the single column datagrid disappears except
for the header and it does not have the dropdown in it. I'm pretty
sure that it is firing because when I comment it out, the grid
reappears.
Thoughts?
Thanks for your help.
TD
protected void DGridAllGroupList_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
e.Item.Cells[0].Text = "Test";
e.Item.Cells[0].Controls.Add(ddGroup);
}
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
just add the control to the header item in the itemdatabound event
e.item.cells[23].controls.add(droppdownlist1);
roughly
--
Regards,
Alvin Bruney
[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here...
http://tinyurl.com/27cok
Is it possible to locate a droplist inside the header of a column
next
to the headertext?
The droplist is created independent of the datagrid and is not
related
to the data in the grid itself.
Has anyone done this?
TD