manraj82
manraj82

Reputation: 6325

Will DataGrid Events stop firing once the grid is placed in an UpdatePanel?

Will DataGrid Events like OnPageIndexChanged,OnItemCreated,OnItemCommand,OnItemDataBound stop firing once the grid is placed in an UpdatePanel?

Upvotes: 0

Views: 290

Answers (1)

NakedBrunch
NakedBrunch

Reputation: 49423

You might need to register each and every LinkButton (I'm asssuimg you're using a LinkButton) as an AsyncPostBackTrigger. After each row is bound in your DateGrid (ie: onRowDataBound), you'll need to search for the LinkButton and register it through code as follows:

LinkButton lb = e.Row.FindControl("MarkAsCompleteButton") as LinkButton;  
ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(lb)

Upvotes: 1

Related Questions