Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
| Search | Today's Posts | Mark Forums Read
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 15th, 2015, 11:23 AM
Authorized User
Points: 50, Level: 1
Points: 50, Level: 1 Points: 50, Level: 1 Points: 50, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Location: Texas!!
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid loading using Postgresql

After executing a SQL instruction and then loading the results into a table I find the dataGridView1 won't load.

I am SURE the data was put into the table as I displayed it after it had loaded the data


Code:
                dtable.AcceptChanges();
                MessageBox.Show("Row one had " + drow[0] + " " + drow[1] + " " + drow[2] + " " + drow[3] + " " + drow[4]");
               dataGridView1.AutoGenerateColumns = true;
                // set the gridview to the datatable..
                dataGridView1.DataSource = dtable;
               // dataGridView1.DataBind();   <-- this command gives errors.
The MessageBox did display the data, so it is there.

So once I get the DataSource for the gridview set to the table
how do I get the GridView to bind the data?

I use Devart.Data.PostgreSql if that matters.

Thanks.

Last edited by Deaf Smith; July 15th, 2015 at 11:25 AM..


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection with PostgreSQL DMatt BOOK: Professional PHP6 1 April 1st, 2011 12:25 AM
Postgresql Transactions satyr Pro JSP 0 March 23rd, 2006 08:31 AM
Loading a text file into a datagrid daniel VB.NET 2002/2003 Basics 10 October 22nd, 2004 12:07 PM
Loading a dropdown from a datagrid colum brenclarke VB.NET 2002/2003 Basics 1 May 30th, 2004 08:43 AM
Upgrading Postgresql 7.1.3 to 7.3.3 ganesh15 PHP How-To 1 September 3rd, 2003 11:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.