This is my code and its not loading records in combobox, even though the rows are there in dataTable ??? why ??
VB Code:
Private Sub LoadParentEntities() Dim b_entity As New B_Entity Dim ddataTable As New DataTable ddataTable = b_entity.GetEntities() LoadParentEntities_CallBack(ddataTable, 20) End Sub Private Sub LoadParentEntities_CallBack(ByVal objectData As DataTable, ByVal recordCount As Long) Dim i As Integer Try With cboParentEntity .DataSource = objectData .DisplayMember = "Entity_Label" .ValueMember = "Entity_Guid" End With Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub




Reply With Quote