Forum  General Visual ...  Visual WebGui v...  DataGridView.DataMember
Previous Previous
 
Next Next
New Post 6/19/2009 10:37 AM
  palli
11189 posts
1st Level Poster




Re: DataGridView.DataMember 

Hi Jay,

Thanks... please send the app if you are able to reproduce and also please let me know if you can not.

Palli

 


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




Re: DataGridView.DataMember 

Hi Palli,

I tried making a sample application using NorthWind  but it worked on 6.4.0 without assigning a data source  so I will have to spend more time investigating.

What I did find was the designer in 6.3.7 assigns a value such as    Me.ProductID.MaxInputLength = -1 for DGV Column Headers and 6.4.0 throws -1 out as it must be 0 or more.

Cheers

Jay

 

 

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




Re: DataGridView.DataMember 

Hi Jay,

Thanks for your efforts and I hope you find the cause.

The MaxInputLength was discussed in this thread here, and the reason for that error is a fix made in this issue here. It is the pre 6.4 designer that is wrong, so we probably will not get this fixed in 6.3.x and will have to remove that line or change -1 to some vaid value.

I remember when I was testing this that I converfted a 6.3.x VWG app to a WinForms app and got that same error in WinForms, so 6.4P1 is doing right in reporting it.

Palli

 


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




Re: DataGridView.DataMember 

Hi Palli,

I put the data member on hold and started invesigating a bigger problem which is that none of my search screens get filled.

These are screens that allow a search into the DB to fill a datagrid. The problem being the DGV never gets any data

Try
            MyTable = CreateTable()
            DataGridView.DataSource = MyTable
            SetupDatagrid()
            If txtSearchValue.Text.Trim.Length > 0 Then
                Dim dt As DataTable = GetSearchResult(Replace(Replace(SearchFields(cmbSearchFields.SelectedIndex), " ", ""), ".", ""), txtSearchValue.Text)
                If dt.Rows.Count > 0 Then
                    'fill table with search result
                    With MyTable
                        .Clear()
                        .BeginLoadData()
                        .Merge(dt)
                        .EndLoadData()
                    End With
                End If
            End If
            '6.4.0 testing
            Debug.WriteLine("Count 2 " & MyTable.TableName.ToString & "/" & MyTable.Rows.Count)
            Debug.WriteLine("Count 3 " & DataGridView.DataSource.ToString)
            Debug.WriteLine("Count 4 " & DataGridView.Rows.Count.ToString)
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Database error", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End Try

Looking at the debug output Count 2 and 3 are OK but Count 4 shows 0 rows

I tried DGV invalidate and update but to no avail

I am scratching my head as to what to try next

Any ideas?

Jay

 

 
New Post 6/21/2009 1:02 AM
  ori.cohen
4383 posts
1st Level Poster




Re: DataGridView.DataMember 

Hello Jay,

Thanks for this research.

Please send us this sample application.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  DataGridView.DataMember
Assessment Bottom
.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