Forum  General Visual ...  Visual WebGui v...  DataGridView.DataMember
Previous Previous
 
Next Next
New Post 6/18/2009 6:09 PM
  jayhobbs
1644 posts
1st Level Poster




DataGridView.DataMember 

Hi,

I converted my main application to 6.4 and discovered many forms show no data.

One problem I traced to the DataGridView.DataMember which does not work.

In the designer code I can see

Me.MyDataGridView.DataMember = "Users"
 Me.MyDataGridView.DataSource = Me.MyDataSet

I checked the datatable to see if it had the  correct number of rows which it did.

To get the Datagrid to show data I had to add

MyDataGridView.DataSource = MyDataSet.Users in the form Load Event

Cheers

Jay

 

 

 
New Post 6/18/2009 6:24 PM
  palli
11189 posts
1st Level Poster




Re: DataGridView.DataMember 

Hi jay,

I assume you are using the 6.4P1 version right ?

I used memory based DataSet, and adding the following code into the Form's constructor, right after the call to InitializeComponent, worked just fine.

        DataGridView1.DataMember = "Table"
        DataGridView1.DataSource = Me.Ds1
        For i As Integer = 1 To 10
            Ds1.Table.AddTableRow("Col1_" + i.ToString, "Col2_" + i.ToString)
        Next
 

Any idea on how I can reproduce this ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 6/18/2009 6:38 PM
  jayhobbs
1644 posts
1st Level Poster




Re: DataGridView.DataMember 

Hi Palli,

Yes this is 6.4 Preview 1

I was using an application that works in 6.3.7

The DGV set up is done in the designer and uses a Dataset /  Datatable from the DB layer using SQL Server

Jay

 

 
New Post 6/18/2009 7:20 PM
  palli
11189 posts
1st Level Poster




Re: DataGridView.DataMember 

Hi Jay,

I did that just now against Northwind database, with calling TableAdapter.Fill in Form's load and still works both 6.3.8 and 6.4P1 !

Any chance of a sample app ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 6/18/2009 7:29 PM
  jayhobbs
1644 posts
1st Level Poster




Re: DataGridView.DataMember 

Hi Palli,

My table gets filled but the DGV gets no data unless I set the datasource.

I will try a sample with Northwind over the weekend.

Cheers

Jay

 

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  DataGridView.DataMember
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS