protected void DefaultEvents_OnServerRowSelected(object sender, GridEventArgs e) { serverEvent.InnerHtml = serverEvent.InnerHtml + span + "rowSelected</span> event called</span><hr>"; }
protected void DefaultEvents_OnServerRowSelected(object sender, GridEventArgs e) { int selectedrowindex = Convert.ToInt32(e.Arguments["rowIndex"]); int id; Dictionary<string, object> data = e.Arguments["data"] as Dictionary<string, object>; foreach (KeyValuePair<string, object> keyval in data) { if (keyval.Key == "EmployeeID") { id = Convert.ToInt32(keyval.Value); serverEvent.InnerHtml = serverEvent.InnerHtml + span + id; } } |