SqlDatatable - Help
Posted: Sat 13 Feb 2016 14:42
Hi people,I´m a delphi heavy user and i´m starting winforms app inside vs 2015, and i need a help
i´m using a pgsqldatatable and i´d to do some crud operations as i write at delphi, it´s possible?
example: pgSqlCadUsuarios.Rows.Add(); starts a new row
but i don´t know how to commit, by the way, is a postgresql table with trigger to fill pk!!
and edit and delete and how to cancel the insert and edit, how can i do it?
i searched but i didn´t find any example
another example:
if (BtnNovo.Text == "Novo")
{
BtnNovo.Text = "Gravar";
habilitaCampos();
pgSqlCadUsuarios.Active = true;
pgSqlCadUsuarios_perfil_codigo.AllowDBNull = true;
pgSqlCadUsuarios.Rows.Add();
}
else
{
BtnNovo.Text = "Novo";
desabilitaCampos();
pgSqlCadUsuarios.GetChanges();
pgSqlCadUsuarios.AcceptChanges();
}
but is not working because of trigger
i´m using a pgsqldatatable and i´d to do some crud operations as i write at delphi, it´s possible?
example: pgSqlCadUsuarios.Rows.Add(); starts a new row
but i don´t know how to commit, by the way, is a postgresql table with trigger to fill pk!!
and edit and delete and how to cancel the insert and edit, how can i do it?
i searched but i didn´t find any example
another example:
if (BtnNovo.Text == "Novo")
{
BtnNovo.Text = "Gravar";
habilitaCampos();
pgSqlCadUsuarios.Active = true;
pgSqlCadUsuarios_perfil_codigo.AllowDBNull = true;
pgSqlCadUsuarios.Rows.Add();
}
else
{
BtnNovo.Text = "Novo";
desabilitaCampos();
pgSqlCadUsuarios.GetChanges();
pgSqlCadUsuarios.AcceptChanges();
}
but is not working because of trigger