I am trying to have the row onclick event change the selectedindex. I think I have an ugly solution that might work. I am going to bind the onclick event to each row in the item_databind. The event is going to redirect back to the same page with a querystring of which row sent the response. I am a newb with javascript so I am not quite sure if this will work as expected. There is probably a cleaner way to do it also. Any suggestions would be greatly apreciated.
That didn't work as I expected. I am now trying to make a select command column that I can make invisible (but have it show up in the html). Then I am going to try to make javascript fire the select button for the desired row that was clicked.
I have this all worked out except for one problem. I can't seem to get the html id of the select control that is created from a select command button in a datagrid. I thought that there would be some way to get the html id in the datagrid_itemcreated event but I haven't found a way to do it yet. Is there no way to get the html id that is going to be rendered from the server side code?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.