In form load i am loading data and binding UI to xceed grid.
near about i have 20000 data to load in form.
below is code...........
------------------------------
Private Sub frmClinicalFacilityMgmt_MergeCFID_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Loding Clinical Facility data
frmCFMgmt_MergeCFID_cmbSelectTheme.SelectedIndex = 3
frmCFMgmt_MergeCFID_btnRefreshGrid.PerformClick()
End Sub
------------------------------------------
Private Sub frmCFMgmt_MergeCFID_btnRefreshGrid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles frmCFMgmt_MergeCFID_btnRefreshGrid.Click
Try
strResult = Nothing
'lbldspMessage.Visible = True
'pgrbWait.Visible = True
'pnlProgressbar1.Visible = True
'System.Threading.Thread.Sleep(100)
'pgrbWait.Maximum = 100
'lbldspMessage.Text = "Processing."
'lbldspMessage.Refresh()
'pgrbWait.Refresh()
'Fetching Clinical Facility Data.
dsTempMergeCFID = objClsClinicalFacilityMgtMergeCFID.getClinicalFacilitiesInfo(strResult)
If strResult <> "successful" Then
MsgBox("Error Occured")
Exit Sub
End If
'Fetching Master 1572 data
objClsClinicalFacilityMgtMergeCFID.getMaster1572_CFchild(dsTempMergeCFID, strResult)
If strResult <> "successful" Then
MsgBox("Error Occured")
Exit Sub
End If
'Fetching SubInv Master 1572 data
objClsClinicalFacilityMgtMergeCFID.getSubInvMaster1572_CFchild(dsTempMergeCFID, strResult)
If strResult <> "successful" Then
MsgBox("Error Occured")
Exit Sub
End If
'Fetching Associates Certificate Details
objClsClinicalFacilityMgtMergeCFID.getAssociateCertificates_child(strResult, dsTempMergeCFID)
If strResult <> "successful" Then
MsgBox("Error Occured")
Exit Sub
End If
' Calling function to bind UI grid
bindClinicalFacilitiesToUI(dsTempMergeCFID)
Catch ex As Exception
End Try
End Sub