Hi is there an issue with the grid events?
I have to create a grid dynamically and assign an event to the grid event ColumnSort
Add a number of columns, allow them to be sortable and bind a list to the grid before passing into a placeholder in a user control.
I have used the following exposed eventhandler but it's not being triggered. Am I going wrong somewhere?
Code: C#
grid2.ColumnSort += new EO.Web.GridColumnEventHandler(grid2_ColumnSort);
protected void grid2_ColumnSort(object sender, EO.Web.GridColumnEventArgs e)
{
System.Diagnostics.Debug.WriteLine("sorted");
}
It only seems to work if the grid is created on the aspx page and the following code is included
Code: HTML/ASPX
oncolumnsort="grid2_ColumnSort"
which isn't much use to me.