I created a datagrid (see code below) to display records from my backend database and also add a radio button using the template column tag. Here’s my problem, how do I programmatically know which radio button was click and pass the primary key value to another call method for further processing, on click of a button which is outside the datagrid control
I have never mixed the data grid and radio buttons. Basically I am a man for the repeaster. What I would do it write out an html form in the repeater but incriment a vlaue in the id of each radio button. For example, write out the data sets row, or the incrimenting data base feild as the id of the repeater, then when a command button or whatever resends the form you can request it. Its the manual way of doing it, but it gives you some more control over what you are doing.
Its still a data grid. Data grids will also be rigid and not give you total control or freedom. I prefer the repeater because you can output results into any container you want (not just a table) and you can use the values rather then display them, etc.
Bookmarks