Hi All,
I have a grid which is perfectly fine and fill with data.
Now i need to loop through the grid in order to read out its column name and data in a button click event.I have search online and try with few alternatives and it is not working.Can anyone help?
I have try with :
1). ajaxExport.Columns(0).HeaderText
2). For Each column As GridDataItem In ajaxExport.Items
If TypeOf column Is GridDataItem Then
Dim col As GridDataItem = TryCast(column, GridDataItem)
a = col(0).Text
'col.Width = 90
'col.HeaderText = "Column count: " + i.ToString
i = i + 1
End If
Next
Help Please!!
I have a grid which is perfectly fine and fill with data.
Now i need to loop through the grid in order to read out its column name and data in a button click event.I have search online and try with few alternatives and it is not working.Can anyone help?
I have try with :
1). ajaxExport.Columns(0).HeaderText
2). For Each column As GridDataItem In ajaxExport.Items
If TypeOf column Is GridDataItem Then
Dim col As GridDataItem = TryCast(column, GridDataItem)
a = col(0).Text
'col.Width = 90
'col.HeaderText = "Column count: " + i.ToString
i = i + 1
End If
Next
Help Please!!