all groups > asp.net datagrid control > september 2004 >
You're in the

asp.net datagrid control

group:

Context Menu on datagrid.



Context Menu on datagrid. Luis Esteban Valencia
9/29/2004 11:54:21 AM
asp.net datagrid control: I need to make a right click menu on a datagrid, because each row of the
datagrid has many options. Its very easy to use button columns but its not
beatiful for the user because it would be like 8 buttons. so the best way I
think is to make a contextual menu with 8 different options for each row.
Each option of the contextual menu will show me details on another page for
example.

Thanks


--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 2.
MIEMBRO ACTIVO DE ALIANZADEV

Re: Context Menu on datagrid. Alvin Bruney [MVP]
9/29/2004 1:44:23 PM
for each cell that you need a menu, build out the menu in javascript and
insert it into the datagrid cell in the itemdatabound event handler. it
would be the same idea as inserting a messagebox or a control in a datagrid
cell, except that it would be javascript responding to a mouseover event

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
[quoted text, click to view]

Re: Context Menu on datagrid. Luis Esteban Valencia
9/29/2004 8:36:59 PM
Please show me the code. I am not MVP :). Each item of the menu must be
executed on the server.

"Alvin Bruney [MVP]" <vapor at steaming post office> escribió en el mensaje
news:%23UyKaRlpEHA.2684@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

Re: Context Menu on datagrid. Alvin Bruney [MVP]
9/30/2004 9:31:14 AM
use this as a starting point in the itemdatabound event handler
e.Item.Cells[1].Attributes.Add("onmouseout","Menu();");

Menu() is your clientside javascript function which you will need to build
to show a menu


--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
[quoted text, click to view]

AddThis Social Bookmark Button