I have a problem with datagrid in Asp.Net. What I want is when I click grid on a particular row. That record should be displayed in popup window. Is it possible?
Short answer - Yes. There are heaps of ways of doing it, but here is one. Add an anchor field with the HTML <a target='_blank' href='http://yoursite.com/singlerecord.asp?key=XXX'>View Row</a> Where XXX is the unique key that defines a record. http://yoursite.com/singlerecord.asp is a page on your site which displays the data for a single record. When the user clicks on this link, it opens a new popup, and immediately displays the data for the unique key specified. Another method is to use javascript to write the contents of the selected row into the new window. This method is a better user experience (no postback) but may not work as well if you want to let the user edit & save the data once it is in the popup window. Cheers.