Hi there,
Iam using Link button in radgrid though GridImagebutton iam giving ID as 'Link' in source code in design page.On page load iam getting the Linkbutton column text as Link which I have given in the source file but I want to get the text for link button as the text which next column has but Iam unable to get the text .Can any one help here is the code
Iam using Link button in radgrid though GridImagebutton iam giving ID as 'Link' in source code in design page.On page load iam getting the Linkbutton column text as Link which I have given in the source file but I want to get the text for link button as the text which next column has but Iam unable to get the text .Can any one help here is the code
for
(int i = 0; i <= gviewTasks.MasterTableView.Items.Count - 1; i++)
{
//GridViewRow gvr= new GridViewRow();
LinkButton lnkbtnusername = new LinkButton();
lnkbtnusername = (
LinkButton)(gviewTasks.MasterTableView.Items[i].Cells[0].FindControl("Link"));
lnkbtnusername.Text = gviewTasks.MasterTableView.Items[i].Cells[3].Text.ToString();
if (gviewTasks.MasterTableView.Items[i].Cells[3].Text.ToString().Trim().ToLower() == "leave")
{
lnkbtnusername.ForeColor = System.Drawing.
Color.Black;
}
else
{
lnkbtnusername.ForeColor = System.Drawing.
Color.Blue;
}
}