Click here to Skip to main content
15,914,905 members
Home / Discussions / Database
   

Database

 
GeneralView Pin
Sebastien Lachance24-Jan-05 4:25
Sebastien Lachance24-Jan-05 4:25 
GeneralRe: View Pin
Mike Ellison24-Jan-05 6:17
Mike Ellison24-Jan-05 6:17 
Generalinsert /retrieve text file into/from MySQL Pin
kd834124-Jan-05 4:08
kd834124-Jan-05 4:08 
GeneralRe: insert /retrieve text file into/from MySQL Pin
David Salter24-Jan-05 10:28
David Salter24-Jan-05 10:28 
GeneralRe: insert /retrieve text file into/from MySQL Pin
kd834125-Jan-05 9:21
kd834125-Jan-05 9:21 
GeneralRe: insert /retrieve text file into/from MySQL Pin
kd834125-Jan-05 9:22
kd834125-Jan-05 9:22 
GeneralRe: insert /retrieve text file into/from MySQL Pin
David Salter28-Jan-05 5:43
David Salter28-Jan-05 5:43 
QuestionDataTable > DataView > ComboBox? Pin
work_to_live24-Jan-05 3:11
work_to_live24-Jan-05 3:11 
I wanted to bind the elements in a ComboBox to a column in a DataTable, but wanted them to be sorted. This application is targeted for the Compact Framework, and I didn't see a way to do that directly.

I decided to create a DataView object from the DataTable with the particular sort I was looking for. I set the DataSource of the ComboBox to the DataView, and setup the Display and Value members as needed by the app. Everything seemed to be working as expected, but I have run into one snag I can't seem to solve. If I change the name of one of the colunmns in the DataTable (ultimately the DisplayMember in the ComboBox), it doesn't propogate to the ComboBox by way of the DataView. On the other hand if I add or delete a row to the DataTable, everything does propogate to the ComboBox, even the row where I only changed the name!

Is this the expected behaviour?

Is there something I can do to force the ComboBox to reload it's drop down list?
AnswerRe: DataTable > DataView > ComboBox? Pin
tojamismis27-Jan-05 8:08
tojamismis27-Jan-05 8:08 
GeneralRe: DataTable > DataView > ComboBox? Pin
work_to_live27-Jan-05 13:18
work_to_live27-Jan-05 13:18 
GeneralRe: DataTable > DataView > ComboBox? Pin
work_to_live27-Jan-05 13:22
work_to_live27-Jan-05 13:22 
Generalconnecting to the data source Pin
Civic0624-Jan-05 1:38
Civic0624-Jan-05 1:38 
GeneralRe: connecting to the data source Pin
David Salter24-Jan-05 10:26
David Salter24-Jan-05 10:26 
GeneralRe: connecting to the data source Pin
Civic0624-Jan-05 11:58
Civic0624-Jan-05 11:58 
GeneralRe: connecting to the data source Pin
David Salter24-Jan-05 22:20
David Salter24-Jan-05 22:20 
GeneralRe: connecting to the data source Pin
Civic0625-Jan-05 16:25
Civic0625-Jan-05 16:25 
GeneralRe: connecting to the data source Pin
David Salter28-Jan-05 5:39
David Salter28-Jan-05 5:39 
GeneralAdd store procedure to database Pin
El'Cachubrey23-Jan-05 19:43
El'Cachubrey23-Jan-05 19:43 
GeneralRe: Add store procedure to database Pin
Mike Dimmick24-Jan-05 1:23
Mike Dimmick24-Jan-05 1:23 
QuestionADO Connection to an Access 2000 DB with a DB password? Pin
Mike the Red21-Jan-05 4:39
Mike the Red21-Jan-05 4:39 
AnswerRe: ADO Connection to an Access 2000 DB with a DB password? Pin
David Salter22-Jan-05 1:36
David Salter22-Jan-05 1:36 
GeneralMoving data Pin
Member 23350920-Jan-05 23:19
Member 23350920-Jan-05 23:19 
GeneralRe: Moving data Pin
Colin Angus Mackay20-Jan-05 23:49
Colin Angus Mackay20-Jan-05 23:49 
GeneralSearching in a disconnected dataset Pin
hendriks20-Jan-05 4:50
hendriks20-Jan-05 4:50 
GeneralRe: Searching in a disconnected dataset Pin
descola22-Jan-05 22:37
descola22-Jan-05 22:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.