multiple button column in one datagrid

  • Thread starter Thread starter BK Kim
  • Start date Start date
B

BK Kim

Is it possible to make multiple select command on one datagrid?

I want to execute method1 when column 1 was selected and execute method2
when column 2 was selected.

Anyone know how???

Thanx in advance
 
Hi Kim

You can try this one

What you can do is register one hidden field in the pageload event using Page.RegisterHiddenFiel

Ex
Page.RegisterHiddenField("btnClicked","initalValue")

Method and whenever you click the button on the datagrid set the value in the hidden field on the client. You will need to write the JavaScript code for updating the value in the hidden field and attach it to button1 and button2 respectively in the ItemDataBound event of the datagrid. Let me know if you need further assistance

HT
Ashish Bhonkiy
(e-mail address removed)
 
Back
Top