Click here to Skip to main content
16,008,942 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Dropdown of available com ports Pin
Luc Pattyn12-Sep-07 14:53
sitebuilderLuc Pattyn12-Sep-07 14:53 
QuestionImage Resize and Crop, am I on the right track? Pin
RX Maverick12-Sep-07 10:20
RX Maverick12-Sep-07 10:20 
AnswerRe: Image Resize and Crop, am I on the right track? Pin
Dave Kreskowiak13-Sep-07 4:10
mveDave Kreskowiak13-Sep-07 4:10 
QuestionProblems binding datarelations to a listbox Pin
Mr Oizo12-Sep-07 9:31
Mr Oizo12-Sep-07 9:31 
AnswerRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak13-Sep-07 4:01
mveDave Kreskowiak13-Sep-07 4:01 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo13-Sep-07 11:26
Mr Oizo13-Sep-07 11:26 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak13-Sep-07 12:38
mveDave Kreskowiak13-Sep-07 12:38 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo15-Sep-07 0:36
Mr Oizo15-Sep-07 0:36 
i use:



For i = 0 To dgSongProperties.Rows.Count - 1
If dgSongProperties.Rows(i).Selected = True Then
index = i

Call ShowCurrentSong(index)
End If

Next

Public sub showCurrentSong(index as integer)

' Other code for the various fields

' this code is to set the displayed values for a particular datgrid row in the various textboxes and combo boxes on the form (cmbGenre is the combo box)


If (dgSongProperties.Rows(index).Cells("Genre").Value) Is DBNull.Value Then
cmbGenre.SelectedText = ""
Else
cmbGenre.SelectedValue = CStr(dgSongProperties.Rows(index).Cells("Genre").Value.ToString)
End If

End sub




" i then have a sub called update datgird which works for allt he fields except genre at the moment(it displays system.data.dataviewrow instead of the selcted genre)

the code for the genre update for the datagrid is:

dgSongProperties.Rows(index).Cells("Genre").Value = cmbGenre.SelectedItem

(I have also tried cmbGenre.selectedvalue and also called the toString method.....None work)
The datasource for the combobox is dsLibrary.Genre
and for display member : dsLibrary.Genre.GenreName


What am I doing wrong here???????
I thought these tools were made to make life easy. Vb2003 seems easy compared to this. Please help



Mr Oizo
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak15-Sep-07 2:11
mveDave Kreskowiak15-Sep-07 2:11 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 2:13
Mr Oizo16-Sep-07 2:13 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak16-Sep-07 4:46
mveDave Kreskowiak16-Sep-07 4:46 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 5:25
Mr Oizo16-Sep-07 5:25 
GeneralRe: Problems binding datarelations to a listbox Pin
Dave Kreskowiak16-Sep-07 5:52
mveDave Kreskowiak16-Sep-07 5:52 
GeneralRe: Problems binding datarelations to a listbox Pin
Mr Oizo16-Sep-07 7:52
Mr Oizo16-Sep-07 7:52 
Questionsolution config file ? Pin
ttilque12-Sep-07 8:38
ttilque12-Sep-07 8:38 
AnswerRe: solution config file ? Pin
Naji El Kotob12-Sep-07 9:57
Naji El Kotob12-Sep-07 9:57 
GeneralRe: solution config file ? Pin
ttilque13-Sep-07 1:10
ttilque13-Sep-07 1:10 
GeneralRe: solution config file ? Pin
Dave Kreskowiak13-Sep-07 3:54
mveDave Kreskowiak13-Sep-07 3:54 
QuestionAutomatic Namespaces Pin
Mark0612-Sep-07 6:19
Mark0612-Sep-07 6:19 
AnswerRe: Automatic Namespaces Pin
Dave Kreskowiak13-Sep-07 3:52
mveDave Kreskowiak13-Sep-07 3:52 
QuestionCan you explain this strange logic?.... Pin
Steven J Jowett12-Sep-07 5:10
Steven J Jowett12-Sep-07 5:10 
AnswerRe: Can you explain this strange logic?.... Pin
penguin500012-Sep-07 5:22
penguin500012-Sep-07 5:22 
GeneralRe: Can you explain this strange logic?.... Pin
Steven J Jowett12-Sep-07 5:33
Steven J Jowett12-Sep-07 5:33 
GeneralRe: Can you explain this strange logic?.... Pin
penguin500012-Sep-07 5:39
penguin500012-Sep-07 5:39 
GeneralRe: Can you explain this strange logic?.... Pin
Steven J Jowett12-Sep-07 5:46
Steven J Jowett12-Sep-07 5:46 

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.