Groups | Blog | Home
all groups > asp.net datagrid control > november 2005 >

asp.net datagrid control : Button column



Kiyomi
11/24/2005 12:00:00 AM
Hello,

Could we have more than one "Edit, Update, Cancel" button column in one
DataGrid ?
If it is possible, how can we manage in the code behind EditCommand,
UpdateCommand and CancelCommand for each button ?

I would like to have two buttons, "Validate" and "Reject", and make them as
EditCommand for each button. Then I would like to have "OK" for each button
as UpdateCommand (of course, the different codes for on click Validate OK
and on click Reject OK), and "Cancel" for each button as CancelCommand.

Would it be possible ? or is there any way to do the same with a single
button column ?

Thank you for your kind help,

Kiyomi

S.M. Altaf [MVP]
11/25/2005 12:00:00 AM
Hi Kiyomi,

It's possible to have your own buttons. Have a look at TemplateColumns in
MSDN, for the datagrid.

HTH
Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com

[quoted text, click to view]

Kiyomi
11/25/2005 12:00:00 AM
Thank you, I will look at it.

Kiyomi
[quoted text, click to view]

AddThis Social Bookmark Button