HI,
I have a page with 3 radgrids.Each exactly the same.
The first grid gives me a value in the SelectedValue property when a row is selected. The second grid, is an exact copy of the first grid does not give a value in the selectedvalue property.
My code on postback:
If Page.IsPostBack = True Then
'CLick on Branch
If CType(Request.Form("__EVENTTARGET"), String) = "eStatsDetail1$RadGrid1" Then
Dim BranchNameString As String
BranchNameString = RadGrid1.SelectedValue
Session("BRANCHNAME") = RadGrid1.SelectedValue
SqlDataSource2.SelectParameters("@P_BRANCHNAME") = New Web.UI.WebControls.Parameter("@P_BRANCHNAME", DbType.String, BranchNameString)
RadGrid4.Rebind()
End If
'User Clicks on Employee
If CType(Request.Form("__EVENTTARGET"), String) = "eStatsDetail1$RadGrid4" Then
BindBranchGrid()
Dim EmployeeNameString As String
EmployeeNameString = RadGrid4.SelectedValue 'This is always empty
Session("EMPLOYEENAME") = RadGrid4.SelectedValue
SqlDataSource4.SelectParameters("@P_EMPLOYEENAME") = New Web.UI.WebControls.Parameter("@P_EMPLOYEENAME", DbType.String, EmployeeNameString)
RadGrid3.Rebind()
End If
End If
I have a page with 3 radgrids.Each exactly the same.
The first grid gives me a value in the SelectedValue property when a row is selected. The second grid, is an exact copy of the first grid does not give a value in the selectedvalue property.
My code on postback:
If Page.IsPostBack = True Then
'CLick on Branch
If CType(Request.Form("__EVENTTARGET"), String) = "eStatsDetail1$RadGrid1" Then
Dim BranchNameString As String
BranchNameString = RadGrid1.SelectedValue
Session("BRANCHNAME") = RadGrid1.SelectedValue
SqlDataSource2.SelectParameters("@P_BRANCHNAME") = New Web.UI.WebControls.Parameter("@P_BRANCHNAME", DbType.String, BranchNameString)
RadGrid4.Rebind()
End If
'User Clicks on Employee
If CType(Request.Form("__EVENTTARGET"), String) = "eStatsDetail1$RadGrid4" Then
BindBranchGrid()
Dim EmployeeNameString As String
EmployeeNameString = RadGrid4.SelectedValue 'This is always empty
Session("EMPLOYEENAME") = RadGrid4.SelectedValue
SqlDataSource4.SelectParameters("@P_EMPLOYEENAME") = New Web.UI.WebControls.Parameter("@P_EMPLOYEENAME", DbType.String, EmployeeNameString)
RadGrid3.Rebind()
End If
End If