or

I am having some trouble figuring out how to get the row index value from the radgrid.
Using Microsoft Gridview I 've been able to accomplish the following:
Dim row As GridViewRow = DirectCast(btnDetails.NamingContainer, GridViewRow)
'Grab the LabAcc_PK and feed it to the Lab details datasource
' finally, rebind the detailview
DBConnect.Open()
cmd.Connection = DBConnect
cmd.CommandType = Data.CommandType.StoredProcedure
cmd.CommandText = "usp_GetLabAccountDetails"
'Add Parameters of SQL Procedure
cmd.Parameters.AddWithValue("LabAcc_PK", Convert.ToString(Gridview1.(row.RowIndex).Value))
How do I do the same thing but using the radgrid.
thanks -
ProjectName.DataBind(); after the records are come in radlistbox if (service[0].grupname.ToString() == "SubCon") { using (var db = new DoskContractServicesDataContext(Globals.strCon)) { var Projec = (from a in db.DSProjectMasters where a.FinalStatus == "Cls" && a.Status != "Del" select new { a.ProjectCode, a.ProjectTitle }).ToList(); ProjectName.DataSource = Projec; ProjectName.DataValueField = "ProjectCode"; ProjectName.DataTextField = "ProjectTitle"; ProjectName.DataBind(); } ProjNam.Visible = true; ProjectName.Visible = true; string md = service[0].Projectid.ToString(); string[] Projid = md.Split(','); for (int i = 0; i < Projid.Length; i++) { string val = Projid[i].ToString(); int m = 0; foreach (RadListBoxItem item1 in ProjectName.Items) { string Md1 = ProjectName.Items[m].Value; if (Md1 == val) { item1.Checked = true; } m++; } } }

<telerik:AjaxSetting AjaxControlID="ImageButtonAggiorna"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Panel3" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls></telerik:AjaxSetting> <asp:Panel ID="Panel3" runat="server"> <asp:ImageButton ID="ImageButtonAggiorna" runat="server" ImageUrl="~/Image/conferma.png" OnClientClick="ImageButtonAggiorna_Click" /> </asp:Panel>Private Sub ImageButtonAggiorna_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImageButtonAggiorna.Click Me.RadNotification1.Show("Servizio non disponibile, effettuare la registrazione.") End Sub