Make a display name of your combo box content list as you wish event different name but you still can assign to specifik field as you wish.
just write below codes then see what happens :
With CmbCARIDATA
DTT = New DataTable
DTT.Columns.Add("Id")
DTT.Columns.Add("Name")
DTT.Rows.Add("ApplicationName.ApplicationID", "ID")
DTT.Rows.Add("ApplicationName.ApplicationName", "NAME")
DTT.Rows.Add("ApplicationName.SystemName", "SYSTEM NAME")
DTT.Rows.Add("ApplicationName.Remark", "REMARK")
CmbCARIDATA.DataSource = DTT
CmbCARIDATA.DisplayMember = "Name"
CmbCARIDATA.ValueMember = "Id"
End With
just write below codes then see what happens :
With CmbCARIDATA
DTT = New DataTable
DTT.Columns.Add("Id")
DTT.Columns.Add("Name")
DTT.Rows.Add("ApplicationName.ApplicationID", "ID")
DTT.Rows.Add("ApplicationName.ApplicationName", "NAME")
DTT.Rows.Add("ApplicationName.SystemName", "SYSTEM NAME")
DTT.Rows.Add("ApplicationName.Remark", "REMARK")
CmbCARIDATA.DataSource = DTT
CmbCARIDATA.DisplayMember = "Name"
CmbCARIDATA.ValueMember = "Id"
End With
Comments
Post a Comment