jvcoach23
Well-known member
Im working with vb.net 2005.
I have a class that ive loaded up with my data. Then created a datasource off the class. I load up the datagridview with data from a class.. all this is working fine. Ive got data.
My problem is with the tag on the datagridview. Ive gone in and bound it to the column in the datasource taht I want (ive done it like this before)
when i create the double click event on the datagridview, in other code ive been able to do a datagridview.tag and get the value of column and row that ive double clicked on. I cant figure it out why its giving me a value = nothing instead.
there must be something that Im forgetting because like I said.. ive done this before...
hopefully someone can help.
Here is what Im doing to load up the datagridview with data...
Like i mention above.. this part is working.. just not when i double click on the datagridview.
thanks
shannon
I have a class that ive loaded up with my data. Then created a datasource off the class. I load up the datagridview with data from a class.. all this is working fine. Ive got data.
My problem is with the tag on the datagridview. Ive gone in and bound it to the column in the datasource taht I want (ive done it like this before)
when i create the double click event on the datagridview, in other code ive been able to do a datagridview.tag and get the value of column and row that ive double clicked on. I cant figure it out why its giving me a value = nothing instead.
there must be something that Im forgetting because like I said.. ive done this before...
hopefully someone can help.
Here is what Im doing to load up the datagridview with data...
Code:
With oBuildingUtils
.LoadFromDB()
End With
With oBuildings
oBuildings = oBuildingUtils.Load("")
End With
Me.BuildingDataGridView.DataSource = oBuildings
Like i mention above.. this part is working.. just not when i double click on the datagridview.
thanks
shannon