Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > databind the datagridview of WINFORMS
 

databind the datagridview of WINFORMS

hi everyone,

im a new programmer. my problem is I cant bind the datagridview in winforms, however, i can bind the griview of webforms.

here's my code...

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, DataGridView1.CurrentCellChanged, DataGridView1.Click

DataGridView1.DataSource = prox.getdata

'DataGridView1.DataMember =

"customer"

End Sub

- im trying to use a n-tier archicture here.
hope you can help me with this...

many thanks

gamena  Wednesday, September 16, 2009 9:31 AM
If you hover over prox.getData, do you see a dataset? Is "customer" the name of a table in that dataset?

www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • Marked As Answer bygamena Wednesday, September 23, 2009 5:45 AM
  •  
DeborahK  Thursday, September 17, 2009 1:50 AM
If you hover over prox.getData, do you see a dataset? Is "customer" the name of a table in that dataset?

www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
  • Marked As Answer bygamena Wednesday, September 23, 2009 5:45 AM
  •  
DeborahK  Thursday, September 17, 2009 1:50 AM
hi deborahk,

i'm reading right now the articles form the link and it's very helpful. thanks a lot. more power.

gamena
gamena  Wednesday, September 23, 2009 5:48 AM

You can use google to search for other answers

Custom Search

More Threads

• Edit,update, cancel in DataGrid
• Typed DataSet with Oracle
• LinkLabel doesn't work with web-URL
• Query with multiple tables
• Looping through all databound controls on a form
• How to deal with Apostrophe in access + C#
• how to get the Primary & Foreign Keys to casade properly?
• DataGridView CellContentClick how do I get the row information for that cell click?
• Reformat DataGridview Column to DataGridViewImageColumn (DataSource defined by SQL-Statement)
• Visual Studios VB datagridview and wizard