protected void grdCategory_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { if (e.Item is GridDataItem) { var item = (GridDataItem)e.Item; TextBox1.Text = item["category_description"].Text; TextBox2.Text = item.GetDataKeyValue("category_id").ToString(); } }
"Simplicity can't be bought later, it must be earned from the start" -- DB
Monday, August 9, 2010
Simpler way to get the selected RadGrid row's primary key and description(or other fields)
Much simpler than SelectedIndexChanged
Labels:
ASP.NET,
C#,
Telerik,
Tweeting-Code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment