I need to create a means of viewing and editing a postgresql table through C# WPF style app. Is it possible to do this in a DataGrid control? So far I found a class in the .NET framework called SqlDataAdapter, which can return a query result in a DataSet object, and update the data in db appropriately if the DataSet is altered. But I think this is only for Microsoft Sequel Server. Would this work for PostgreSql? And would it be possible to bind the DataSet to a Datagrid?
Thanks,
Alex
npgsql is what I have always used. It uses the same interfaces so instead of a
SqlDataAdapteryou’ll have anNpgsqlDataAdapterthat functions the same way. From there, you can populate yourDataTableorDataSourceand bind that to yourDataGrid.