G
Guest
I am having a problem with my subroutine "doBinding". I have set the default
sortBy to the "PatientID" field from my datasource. However, I am getting
build errors on the "PatientID" field. Why is this invalid?
Sub doBinding( optional sortBy As String "PatientID")
Dim pat As New PatientDP
dsPatient = pat.GetPatientList()
DataGrid1.DataSource = dsPatient.tblPatient
DataGrid1.DataBind()
End Sub
Sub reSort(ByVal s As Object, ByVal e As DataGridSortCommandEventArgs)
doBinding(e.sortExpression)
End Sub
sortBy to the "PatientID" field from my datasource. However, I am getting
build errors on the "PatientID" field. Why is this invalid?
Sub doBinding( optional sortBy As String "PatientID")
Dim pat As New PatientDP
dsPatient = pat.GetPatientList()
DataGrid1.DataSource = dsPatient.tblPatient
DataGrid1.DataBind()
End Sub
Sub reSort(ByVal s As Object, ByVal e As DataGridSortCommandEventArgs)
doBinding(e.sortExpression)
End Sub