Pass Text Value Selected From RadGrid
I have a RadGrid with one GridTemplateColumn that is populated with data using a stored procedure. Each item in the column can be selected because I set it as a LinkButton. I need to pass the text value that I select within the radgrid into a label. I am trying to do this within the RadGrid1_itemCommand, but I cant seem to figure it out. Any help would be appreciated.
Hi Aret,
I would recommend using the RowSelected event here - this wouldn't require a button in the grid, but would directly execute postbacks on selection and you will be able to get the value from that row and pass it to the label. Please check this forum thread for more information on how to do that:
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-row-select-event.aspx
Also, you can check out one of our RadGrid demos that shows such functionality implemented:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx
Let me know if you have further difficulties with that.