Skip to content

Replies

0
Jeevitha Manickam
Jeevitha Manickam answered on Nov 4, 2014 10:50 AM

Thanks Jose. It was very helpful.

0
Jeevitha Manickam
Jeevitha Manickam answered on Oct 31, 2014 9:33 AM

Hi Jose,

My code is like this.
void WebdataGrid1_InitializeRow(object sender, RowEventArgs e)
{
if (e.Row.Index == 0)
{
e.Row.Items[3].Column.Key = c_sName;
e.Row.Items[3].Column.Header.Text = NameText();
e.Row.Items[3].Column.Width = Unit.Pixel(250);

HyperLink link = e.Row.Items[3].FindControl("Link1") as HyperLink;
link.Text = e.Row.Index.ToString();
}
}

I want set this name field( just this column for all the row values) as hyperlink.

HyperLink link = e.Row.Items[3].FindControl("Link1") as HyperLink;
link.Text = e.Row.Index.ToString();

Doesn't seem to give me what i expected. Could u please let me know where iam missing.

Its higly crictical. Expecting ur reply asap.

Thanks in advance.

0
Jeevitha Manickam
Jeevitha Manickam answered on Oct 29, 2014 11:30 AM

Hi Jose, 

Appreciate for replying my query.

The link which u provided me doesnt hold any sample to handle hyperlink in c# code behind.(dynamically)

Please provide a sample such that hyperlink is created for a column in InitializeRow using RowEventArgs.

Expecting your help at the earliest.