Public Class queryAttribute
Public ccDisplayName As String = ""
Public ccQueryType As Integer
Public ccQueryValue As String = ""
Then there is an arraylist of this class
dim myList as ArrayList
I call myList.add for a number of items and I can verify they are there.
Then I try to set the datasource of the datagridview gvAttributes to be myList
so gvAttributes.Datasource = myList
When I initialize the app I do this..
.AutoGenerateColumns = False
.ColumnHeadersVisible = False
Dim colBmp As New Bitmap(Application.StartupPath & "\resources\delete.gif")
Dim colImg As Image
colImg = colBmp
Dim col As New DataGridViewImageColumn
col.Image = colImg
Then when the content of the arraylist is changed I do this..
'.AutoGenerateColumns = True
.ColumnHeadersVisible = True
.Columns(0).DataPropertyName = "ccDisplayName"
.Columns(1).DataPropertyName = "ccQueryValue"
gvAttributes.DataSource = myList
Can someone please tell me why I dont have rows in my grid? I can see when I look at the properties of the grid in "watch" that the datasource has rows.. why are they not showing up here?
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.