dear sirs
i was trying the following
An ASP.NET DataGrid with AutoFilter[
^]
the auto filter appears but never worked , whatever i choose any item to filter on it
i got ArgumentOutOfRangeException
i found that ArrayList list which used in the OnItemDataBound is became empty when the RaisePostBackEvent is called
System.ArgumentOutOfRangeException was unhandled by user code
Message=Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source=mscorlib
ParamName=index
StackTrace:
at System.Collections.ArrayList.get_Item(Int32 index)
at DataGridAF.DataGridAutoFilter.RaisePostBackEvent(String eventArgument) in C:\Users\admin\Desktop\dwn\DataGridAF\DataGridAutoFilter.cs:line 143
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)