Jump to content
Software FX Community

How to use "OnDataSourceChanged" Event?


fomur

Recommended Posts

Hi, 

Is anyone know how to use "OnDataSourceChanged" event of GridFX? I have tried it but it warned me like this :"No overload for 'UpdateGrid' matches delegate 'System.EventHandler'". I have tried  I have looked around API notes to find out an example yet failed to do so. My sample code is below. Thanks for any help.

Code at aspx file:

 <GridFX:Grid ID="Grid1" runat="server" DataSourceID="AccessDataSource1"   Motif="Hotmail" Palette="Hotmail" Width="900px" OnDataSourceChanged="UpdateGrid">   //Details...

</GridFX:Grid>

 Code at aspx.cs file (I have put all the options I have tried so treat each of them as only method that is written):

 1) protected void UpdateGrid()   {   }

  2)protected void UpdateGrid(object sender, EventHandler e )   {   }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...