DataTable dtTable = ds_cli.Tables[0];
dtTable.PrimaryKey = dtTable.Columns[0];
DataRow delete = dtTable.Rows.Find(txtCli_cod);
delete.Delete();
But it gives me an error, how am i supposed to pass the PrimaryKey value to the dataTable?
Thanx again, and sorry for the lots of questions :(
On 4/11/06,
Fabio Gomes <[EMAIL PROTECTED]> wrote:
No, o didnt do that.
I think that this is the problem then.
I try to read about it, i m completely lost on this stuff.
Thanx :)On 4/11/06, Carlos Guzmán Álvarez <[EMAIL PROTECTED]> wrote:Hello:
> Sorry.. what do mean changes before the update?
Check if ds_cli.HasChanges is true if not the dataadapter will have
nothing to update,
did you have deleted the Row from the datatable right ??
--
Carlos Guzmán Álvarez
Vigo-Spain
http://carlosga.blogspot.com/
"When you don't code, you tend to become one of those architects who thinks everything is possible" ( Anders Hejlsberg )
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider