F
fabrizio
Hello all ,
I have a small problem. My app has two forms:
On the first one (frmMain) i have a datagrid which modifies a
datatable. I can modify data and i use the datatable rowchanged event
to apply changes to my database. (I know i could use the
adpater.update method but i prefer to do it this way). Te dataset is
public so that i can access it also from other forms.
I also have a second form (frmAltro) that i load from a button click.
This form has a datagrid which gets data from the same datatable as
the one on frmMain. From this form (frmMain) i add some datarows to
the datatable when the closing event is fired. The problem is that the
rowchanged event of the dataset will fire (as it should do) when i
edit the datatable either from frmMain or frmAltro. Is there a way to
prevent the rowchanged event to fire when the datatable is edited from
frmAltro? Or maybe is there a way that i can know which form (frmMain
or frmAltro) caused the rowchanged event to fire..?
Regards,
Fabrizio Mazzoni
I have a small problem. My app has two forms:
On the first one (frmMain) i have a datagrid which modifies a
datatable. I can modify data and i use the datatable rowchanged event
to apply changes to my database. (I know i could use the
adpater.update method but i prefer to do it this way). Te dataset is
public so that i can access it also from other forms.
I also have a second form (frmAltro) that i load from a button click.
This form has a datagrid which gets data from the same datatable as
the one on frmMain. From this form (frmMain) i add some datarows to
the datatable when the closing event is fired. The problem is that the
rowchanged event of the dataset will fire (as it should do) when i
edit the datatable either from frmMain or frmAltro. Is there a way to
prevent the rowchanged event to fire when the datatable is edited from
frmAltro? Or maybe is there a way that i can know which form (frmMain
or frmAltro) caused the rowchanged event to fire..?
Regards,
Fabrizio Mazzoni