G
Gianco
Hello
I'm trying to call a callback function directly from the C# code but I
don't know how to do it... I tried a lot of solutions but the C#
syntax slap me
Practically, I want test if the user hase defined a callback for a
certain control and then call it from the code
example
public void FillMyGrid(System.Windows.Forms.DataGrid Grid)
{
//
// Code to fill the grid
//
//
// If the user has defined the CurrentCellChanged event
// I would call it, this code is just how I dream about
// to do it
//
if (Grid.CurrentCellChanged != null)
{
Grid.CurrentCellChanged(Grid, new System.Eventargs());
}
//
// But unfortunately is not so...
//
}
Can anyone help me?
Thank you
Gianfranco
I'm trying to call a callback function directly from the C# code but I
don't know how to do it... I tried a lot of solutions but the C#
syntax slap me
Practically, I want test if the user hase defined a callback for a
certain control and then call it from the code
example
public void FillMyGrid(System.Windows.Forms.DataGrid Grid)
{
//
// Code to fill the grid
//
//
// If the user has defined the CurrentCellChanged event
// I would call it, this code is just how I dream about
// to do it
//
if (Grid.CurrentCellChanged != null)
{
Grid.CurrentCellChanged(Grid, new System.Eventargs());
}
//
// But unfortunately is not so...
//
}
Can anyone help me?
Thank you
Gianfranco