x77, hopefully I answer your questions correctly. dc is a data contents and vwTechSelectNameChanges is a view from Sql Server. So I believe Tnames (should be TMnames my typo) is an object. You say TMNames is not a Datasource but it was working as a datasource before. I could use something like this:
For Each Change In TMNames
Change.HasValue = False Then
cmbTMName.Items.Add("")
Else
cmbTMName.Items.Add(Change
End If
This causes other issues with the other comboboxes for some reason and I'll need to fix Change.HasValue = False Then line something with the null value is an issue. In this case null is a valid choice. any ideas.
Main Topics
Browse All Topics





by: x77Posted on 2009-11-03 at 09:35:48ID: 25731382
Tnames is Expression Tree. Type.
if you use Tnames.ToArray then you have an array.
you nedd apply a function or ForEach that exequetes the Expression Tree Query to obtain a DataView, DataTable, etc.
Tnames is not a DataSource.
To Help you, I need Know the dc.vwTechSelectNameChanges
Depending on type of Data attached to Expression Tree, then when you append "." to TNames. some options appears.
Is a DataTable ?