G
Guest
I have a GridView which triggers the SelectedIndexChanging event when I click
on the row anywhere implemented by this code in RowDataBound event handler:
if ( e.Row.RowType == DataControlRowType.DataRow ){
e.Row.Attributes.Add( "onclick",this.GetPostBackClientEvent(
RegistrantsGridView, "Select$" + e.Row.RowIndex.ToString() ) );
}
The problem is that when I click on a DropDownList in the row, it triggers
the above the rows SelectedIndexChanging event.
Is there some way I can filter out the click on the DropDownList so it
doesn't trigger the row's event or maybe cancel the row's event?
Thanks.
on the row anywhere implemented by this code in RowDataBound event handler:
if ( e.Row.RowType == DataControlRowType.DataRow ){
e.Row.Attributes.Add( "onclick",this.GetPostBackClientEvent(
RegistrantsGridView, "Select$" + e.Row.RowIndex.ToString() ) );
}
The problem is that when I click on a DropDownList in the row, it triggers
the above the rows SelectedIndexChanging event.
Is there some way I can filter out the click on the DropDownList so it
doesn't trigger the row's event or maybe cancel the row's event?
Thanks.