all groups > asp.net datagrid control > october 2005 >
You're in the

asp.net datagrid control

group:

DataGrid Select Button Event not fired


DataGrid Select Button Event not fired sathya
10/19/2005 10:49:02 PM
asp.net datagrid control:
hi all,

i am creating datagrid , i have added button column in my datagrid ,but
the event for button column is not fired.

i have added buttoncolumn to datagrid as shown below:

ButtonColumn bs = new ButtonColumn();
bs.Text = "select";
bs.ButtonType = ButtonColumnType.PushButton;
DataGrid1.Columns.Add(bs);

i have also writted eventhandler function to handle the click of
button as shown:

private void ds_ItemCommand(object source, DataGridCommandEventArgs e)
{
Page.Response.Write("Test");
}


but the event is nor fired...
please help me in this regard
thanks in advance.

regards

sathya narayanan v
Re:DataGrid Select Button Event not fired Mark Fruhling
10/21/2005 10:15:25 AM
I think the button column will hook up to it's own event handler.

bs_Click(object sender, System.EventArgs e)
{

//Code Here

AddThis Social Bookmark Button