[Mono-list] DataGridSortCommandEventArgs

Jones, Larry LJones@Lithonia.com
Wed, 28 May 2003 17:14:37 -0700


Here is the event handler:

void dgrdTitles_SortCommand(object s, DataGridSortCommandEventArgs e)
{
    BindDataGrid( e.SortExpression );
}

and here is where it is set up in the DataGrid:

<asp:DataGrid
  ID=3D"dgrdTitles"
  AllowSorting=3D"True"
  PageSize=3D"5"
  OnSortCommand=3D"dgrdTitles_SortCommand"
  CellPadding=3D"3"
  Runat=3D"Server" />

Larry Jones
Hydrel/Lithonia Lighting


-----Original Message-----
From: Gonzalo Paniagua Javier [mailto:gonzalo@ximian.com]
Sent: Wednesday, May 28, 2003 5:12 PM
To: 'Mono-list@lists.ximian.com'
Subject: RE: [Mono-list] DataGridSortCommandEventArgs


El jue, 29 de 05 de 2003 a las 01:40, Jones, Larry escribi=F3:
> Sorry the subject said it right.  Its DataGridSortCommandEventsArg =
that
> appears to be missing.
> I get this error from an .aspx page:
>=20
> Error message: /tmp/tmpfc7e4b0.cs(109,0) : error CS0123: Method 'void
> ASP.Listing11_19_aspx.dgrdTitles_SortCommand (object,
> System.Web.UI.WebControls.DataGridSortCommandEventArgs)' does not =
match
> delegate 'void System.Web.UI.WebControls.DataGridCommandEventHandler
> (object, System.Web.UI.WebControls.DataGridCommandEventArgs)'

That error does not mean that the class is missing.

Can you send the error line (it should be an addition to an event) and
the signature of the method that you are trying to add as an event
handler?

-Gonzalo


_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list