T
tshad
I have a couple of problems with my datagrid in vb.net.
In asp.net I can do the following to loop through a datagrid.
for each oItem as DataGridItem in DataGrid1.Items
This apparently doesn't work in vb.net. How would I do it there?
Also, I am trying put bind my DataTable from my Dataset to my DataGrid. I
have 37 rows in the table but after binding it to the Datagrid, it shows the
column titles correctly but no data and only one row.
DataGrid1.DataSource = DataSetObj
DataGrid1.DataMember = "DTGLConversion"
Is there something else I need to do to move the data to the DataGrid?
There is no DataBind method as there is in asp.net.
If I do:
Dim temp As Integer = DataGrid1.VisibleRowCount
I get temp = 3
I really wish they had the same methods and properties for the Datagid in
both asp.net and vb.net.
Thanks,
Tom
In asp.net I can do the following to loop through a datagrid.
for each oItem as DataGridItem in DataGrid1.Items
This apparently doesn't work in vb.net. How would I do it there?
Also, I am trying put bind my DataTable from my Dataset to my DataGrid. I
have 37 rows in the table but after binding it to the Datagrid, it shows the
column titles correctly but no data and only one row.
DataGrid1.DataSource = DataSetObj
DataGrid1.DataMember = "DTGLConversion"
Is there something else I need to do to move the data to the DataGrid?
There is no DataBind method as there is in asp.net.
If I do:
Dim temp As Integer = DataGrid1.VisibleRowCount
I get temp = 3
I really wish they had the same methods and properties for the Datagid in
both asp.net and vb.net.
Thanks,
Tom