I'm trying to populate a datagrid with an untyped datatable in a winform. Below is the code I'm running. Can anyone explain why, after I set the datasource property, the code keeps running (exception free), and the form never appears? This code resides in the form load event. When I comment out the DataSource line, the form comes up fine, so I'm guessing whatever the problem is in that line. I've verified that I'm getting back a valid Datatable with populated values. I've used grids many times before without ever seeing this problem. I haven't set any of the Datagrid properties, they're all the defaults.
I've tried populating a Dataset, dataview, etc...Nothing works.
Dim i As Integer
Dim dt As New DataTable
olMgr = New SystemMgr
dt = olPlayerMgr.GetMembers
DataGrid1.DataSource = dt
Catch ex As Exception
Dim Err As ErrorLogger = New ErrorLogger
Err.HandleError(slErrLogPath & slErrLogFile, ex, "")
Err = Nothing