Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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

                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.


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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:47 AM.

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