Welcome Guest Search | Active Topics | Sign In | Register

How do I render server control in grid cell? Options
DH
Posted: Wednesday, July 30, 2008 10:03:51 PM
Rank: Member
Groups: Member

Joined: 11/19/2007
Posts: 25
Hi,

This snippet is part of a page load

HyperLink myLink = new HyperLink();
myLink.Text = "test";
myLink.NavigateUrl = "http://www.yahoo.com";
object[] objArray = new object[]
{
new object[]{myLink, 0},
new object[]{"Q2. Courteousness", 0},

};

Grid1.DataSource = objArray;
Grid1.DataBind();

How do I get myLink to render into the grid cell?

Thanks,

Dave
eo_support
Posted: Thursday, July 31, 2008 12:32:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,088
Hi Dave,

Unfortunately you will not be able to render server controls inside a Grid cell. Sorry about that!

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.