This is a migrated thread and some comments may be shown as answers.

How to get LinkButton text in radgrid GridTemplateColumn

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mind
Top achievements
Rank 1
Mind asked on 31 May 2012, 01:47 PM
Hi, i added Template column in RadGrid and in this template added LinkButton, i want that when i clicked LinkButton to get this LinkButton text.
Thanks.

2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 31 May 2012, 01:51 PM
Hello,
protected void lnkbtn_Click(object sender, EventArgs e)
  {
      LinkButton lnkbtn = sender as LinkButton;
 
      string str = lnkbtn.Text; // Access Text Here
       
  }


Thanks,
Jayesh Goyani
0
Mind
Top achievements
Rank 1
answered on 01 Jun 2012, 09:43 AM
Thanks!!!
Tags
Grid
Asked by
Mind
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Mind
Top achievements
Rank 1
Share this question
or