![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
John, Just get the table in any way, if that is a datatable, then it is just setting the datasource to the table, the displaymember to the columname (as datable.Column.Columname or as string) and the same for the valuemember To get the table you need OleDB. It is so simple that there are probably no samples for this. Cor If I can do a follow on from there. |
#4
| |||
| |||
|
|
On Mon, 31 Dec 2007 11:06:16 +0100, "Cor Ligthert[MVP]" notmyfirstname (AT) planet (DOT) nl> wrote: John, Just get the table in any way, if that is a datatable, then it is just setting the datasource to the table, the displaymember to the columname (as datable.Column.Columname or as string) and the same for the valuemember To get the table you need OleDB. It is so simple that there are probably no samples for this. Cor If I can do a follow on from there. If the table the data is coming from is a lookup table (say a unique ID and a branch name), if I have branch name as the displaymember and the unique id as the value member. How would I then go away saving the value of the unique id to another table? Don |
#5
| |||
| |||
|
|
myListBox.DataSource = MyTable myListBox.DisplayMember = "BranchName" myListBox.ValueMember = "MyIDName" With a ; at the end in C# TheOtherTable.Rows(TheRowRowNumber).Item("TheField ") = myListBox.SelectedValue or in C# TheOtherTable[TheRowNumber]["TheField"] = myListBox.SelectedValue; Cor dgcar... (AT) hotmail (DOT) com> schreef in berichtnews:mnrkn351blqjlsci3evhksep8siaq5n3ul (AT) 4ax (DOT) com... On Mon, 31 Dec 2007 11:06:16 +0100, "Cor Ligthert[MVP]" notmyfirstn... (AT) planet (DOT) nl> wrote: John, Just get the table in any way, if that is a datatable, then it is just setting the datasource to the table, the displaymember to the columname (as datable.Column.Columname or as string) and the same for the valuemember To get the table you need OleDB. It is so simple that there are probably no samples for this. Cor If I can do a follow on from there. If the table the data is coming from is a lookup table (say a unique ID and a branch name), if I have branch name as the displaymember and the unique id as the value member. *How would I then go away saving the value of the unique id to another table? Don- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |