Hi Arn,
I think your mistake is that you call the AcceptChanges()-Method from
your DataGrid BEFOR you update the data!
In this case the Update()-Methode can't find any changes in your
DataGrid because the RowState Property of all DataRows was set to
unchanged.
Call first the Update()-Methode and than the AcceptChanges()-Methode.
Hope it helps,
Carsten
Hi Carsten,
I have changed the code, it look like:
private void Grid1_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
fbConnection1.Open();
FirebirdSql.Data.Firebird.FbTransaction Tran =
Connessione.BeginTransaction();
FbDataAdapter1.Update( fbDataset1 );
Tran.Commit();
fbConnection1.Close();
fbDataset1.AcceptChanges(); <------------------ have moved
this here
// *************************************
Grid1.EditItemIndex = -1;
fbDataAdapter.Fill( fbDataset1 );
Grid.DataBind();
}
NOT WORKING ..................
Seems impossible this is a SIMPLE thing to do
Anyway Thanks a lot.
Any more hints?
I use Delphi 2005.
TIA
Arn
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider