Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Why DataGridView behaves like this?
 

Why DataGridView behaves like this?

I have a DataGridView on a windows form and I am binding it to a BindingSource connected to a ODBC source (SQL 2008).

In the Smart Tasks of the DataGridview I can preview the results but when the form is loaded the retrieved rows do not make it to the grid.

What could be the reason?

  • SQL Server 2008 November
  • Microsoft Visual Studio 2008
    Version 9.0.21022.8 RTM
    Microsoft .NET Framework
    Version 3.5
  • WindowsXP Professional Media Center SP2
Jayaram Krishnaswamy  Thursday, February 21, 2008 2:54 PM

Hi,

Odd problem, you can switch to the .cs file and check the Form_Load event handler function whether the TableAdapter has filled the DataSet or not, if not, fill it manually. If this do not work, please feel free to let me know.

Best Regards,
Zhi-xin Ye.

Zhi-Xin Ye  Wednesday, February 27, 2008 11:55 AM

Please refer to my other posting about the same topic.

Jayaram Krishnaswamy  Monday, March 24, 2008 2:05 PM
Hi,
I was also having the same problem, what I did finally is created the form from scratch once again, that sounds stupid, but it helped me. Now agaian today I am stucked with the same problem once again in another form :(.
If anyone has some solution it would be nice as it can save rework.

Thanks
CrushedOnion
CrushedOnion  Tuesday, May 12, 2009 6:44 AM

That problem went away. Just a few minutes ago I tried. It's working as it should.

These are the components I have:

Microsoft Visual Basic 2008 92357-152-0000034-60381
Visual Studio 2008 SP1

Windows XP MediaCenter Edition with SP3

Microsoft Data Access Components (MDAC)2000.085.1132.00 (xpsp.080413-0852)

Microsoft SQL Server Management Studio Complete (expires in 51 days)10.0.1600.22 ((SQL_PreRelease).080709-1414 )

MS SQL Server ODBC Driver Version 03.85.1132

I only had a partial listof components I had in my previous post


mysorian
Jayaram Krishnaswamy  Friday, July 10, 2009 1:49 AM

You can use google to search for other answers

Custom Search

More Threads

• self created icons
• Collection Property
• TabControl - Selecting Tab in Code problem
• Adding objects to inherited collection from designer.
• C# TabOrder Problem in disable button
• windows forms deployment
• find Date
• User control problem with Visible and Enabled
• Why are SnapLines and SnapToGrid Mutually Exclusive?
• HELP ME!!!!!!