Tearing my hair out over this, and it may be a postback problem of some sort.
I have everything displaying, etc. BUT when I click the "Run Process" button, I want to grab the selected checkboxes and do an operation. Problem is, I can't get the selectedindexes. Here's the code:
Private Sub btnRunProcess_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRunProcess.Click
Dim rsc As RowSelectorColumn = RowSelectorColumn.FindColumn(DataGrid1)
Dim objRegManager As New wsREGISTRATION.REGISTRATIONManager
Dim objRegErrors() As wsREGISTRATION.ERROR_ENTITY
Dim selectedIndex As Integer
For Each selectedIndex In rsc.SelectedIndexes
....
Next
End Sub
I cannot get a length to return on the FindColumn function. Here is my Page_Load:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
RetrieveFields()
End if
...
End Sub
RetrieveFields()
'Grabs a DataSet with Data in it from DB
'Binds to DataGrid
With DataGrid1
.DataSource = ds
.DataBind()
End With
Do you see the problem anywhere?