Hi
I am trying to replace a Datagrid in a project, I have generated a RadGrid programmatically in the Page_Init as it needs to have a few image links in each row to replicate the functionality that is already in place. The first button is working fine, as it works on a post-back, but im having an issue with replicating the other button, which is a link to a page using an id that is available in one of the other columns.
In the current solution, the below example is how it done on the client side:
DataBinder.Eval(Container, 'DataItem.RecordID', 'ViewRecord.aspx?RecordID={0}')
As im now doing this serverside, how can i replicate the above? My Template currently is using a HyperLink, so I can use the NavigateURL, but im unsure how to get the ID per row and update the template in a programatically generated RadGrid
Any help would be appreciated
Regards
David
I am trying to replace a Datagrid in a project, I have generated a RadGrid programmatically in the Page_Init as it needs to have a few image links in each row to replicate the functionality that is already in place. The first button is working fine, as it works on a post-back, but im having an issue with replicating the other button, which is a link to a page using an id that is available in one of the other columns.
In the current solution, the below example is how it done on the client side:
DataBinder.Eval(Container, 'DataItem.RecordID', 'ViewRecord.aspx?RecordID={0}')
As im now doing this serverside, how can i replicate the above? My Template currently is using a HyperLink, so I can use the NavigateURL, but im unsure how to get the ID per row and update the template in a programatically generated RadGrid
Any help would be appreciated
Regards
David