Hello all,
I have a simple grid with 4 columns, with EnablePostBackOnRowClick "on". I can retrieve which row has been selected but I want to be able to go deeper in the selection. The grid contains Project data and the columns are;
Column 1: Project Id + Project Description
Column 2: Director Id + Firstname Lastname
Column 3: Manager Id + Firstname Lastname
Column 4: Teamlead Id + Firstname Lastname
This is pretty simple and I think easy to visualize. What I need to achieve is to determine which cell has been clicked.
From the ItemCommand event of the grid, I can get all the values from the selected row with;
If e.CommandName = "RowClick" Then
However the purpose of that grid is to redirect the user to the appropriate page with the selected Id. Right now I can concatenate all 4 values in the querystring but I need to know what cell has been clicked.
i.e. If the user click on a Director name, I have to load Director.aspx against the selected Id.
i.e. If the user click on a Team Lead name, I have to load Teamlead.aspx against the selected Id.
etc etc..
I need this done all on Server Side, is this possible?
I am using Q2 2008
Thanks in advance.
P.S. From the Search I found several thread about similar problem, none was providing what I need.
P.S.S. A solution has been suggested by a contributor to use the PreRender event and get the item.Selected; this always return the last column value.
I have a simple grid with 4 columns, with EnablePostBackOnRowClick "on". I can retrieve which row has been selected but I want to be able to go deeper in the selection. The grid contains Project data and the columns are;
Column 1: Project Id + Project Description
Column 2: Director Id + Firstname Lastname
Column 3: Manager Id + Firstname Lastname
Column 4: Teamlead Id + Firstname Lastname
This is pretty simple and I think easy to visualize. What I need to achieve is to determine which cell has been clicked.
From the ItemCommand event of the grid, I can get all the values from the selected row with;
If e.CommandName = "RowClick" Then
However the purpose of that grid is to redirect the user to the appropriate page with the selected Id. Right now I can concatenate all 4 values in the querystring but I need to know what cell has been clicked.
i.e. If the user click on a Director name, I have to load Director.aspx against the selected Id.
i.e. If the user click on a Team Lead name, I have to load Teamlead.aspx against the selected Id.
etc etc..
I need this done all on Server Side, is this possible?
I am using Q2 2008
Thanks in advance.
P.S. From the Search I found several thread about similar problem, none was providing what I need.
P.S.S. A solution has been suggested by a contributor to use the PreRender event and get the item.Selected; this always return the last column value.