1.) protected void RadgridDisplayCategories_DeleteCommand(object source, Telerik.WebControls.GridCommandEventArgs e)
{
int Category_id = Convert.ToInt32(RadgridDisplayCategories.MasterTableView.
DataKeyValues[e.Item.ItemIndex]["CategoryID"]);
}
=====================================================================================
2.)protected void RadGridAttributes_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "View")
{
Int32 CategoryID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues
[e.Item.ItemIndex]["CategoryID"]);
}
}
No comments:
Post a Comment