datagrid event

G

Guest

Hi all,

i have a web form in an asp application that has a datagrid on it and i was
wondering if i can use
a double-click event to pull up the next form to show details?
What i mean is to take the double clicked value and open another grid bound
on that value
thanks i appriciate any help,
Mary
 
G

Guest

Hi Mary,

Yes, you can use the double click event. One way to do that would be:
1- add <asp:ButtonColumn ButtonType="LinkButton"> to your grid that would
handle the display of the child datagrid based on a DataKeyField of the
selected grid row
2- in the OnItemDataBound code, add a GetPostBackEventReference to associate
the ondblClick with that LinkButton.

I have an example on this link:
http://www.societopia.net/Samples/DataGrid_2c.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top