Click here to Skip to main content
15,920,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generala record delete problem Pin
Anonymous17-Mar-05 0:13
Anonymous17-Mar-05 0:13 
GeneralRe: a record delete problem Pin
Sebastien Lachance17-Mar-05 6:57
Sebastien Lachance17-Mar-05 6:57 
GeneralWindows 2000 Server Pin
ga051016-Mar-05 4:38
sussga051016-Mar-05 4:38 
Generalreading a .txt file for data in VB .NET Pin
bizjosh16-Mar-05 2:17
bizjosh16-Mar-05 2:17 
GeneralRe: reading a .txt file for data in VB .NET Pin
Christian Graus16-Mar-05 15:38
protectorChristian Graus16-Mar-05 15:38 
GeneralRe: reading a .txt file for data in VB .NET Pin
Dr_Lomax18-Mar-05 4:59
Dr_Lomax18-Mar-05 4:59 
GeneralRe: reading a .txt file for data in VB .NET Pin
j1webb18-Mar-05 12:13
j1webb18-Mar-05 12:13 
QuestionDo you know why its happened? Pin
Mohamed Ishak15-Mar-05 23:59
professionalMohamed Ishak15-Mar-05 23:59 
Sniff | :^) In .Net When you Load the Recordset to datatable.If you set source of data to controls like listbox or combobox some times the datas are not viewed instead of In control we see the form of System.Data.DataRowView(It happenes only in sometime not all time )but we can avoid it through dataview
For example
dim dt as datatable
Adapter.Fill(dt)
ComboBox.Datasource = dt
ComboBox.DisplayMember="Column1"
ComboBox.ValueMember = "Column2" // In my case Display member displays record well but problem in Valuemember only i got as system.Data.DataRowView

you can avoid this in DirectCasting of DatarowView

Otherwise

dim dv as dataview = dt.DefaultView
ComboBox.Datasource = dv
ComboBox.DisplayMember="Column1"
ComboBox.ValueMember = "Column2" // Now works fine

Otherwise you can directly give as


ComboBox.Datasource = dt.Defaultview
ComboBox.DisplayMember="Column1"
ComboBox.ValueMember = "Column2" // Now works fine



I dont know why its happened,If anybody knows ,Let inform here

Rugfy
GeneralPropertyGrid - Internet Explorer hosting problem Pin
Member 88279715-Mar-05 19:11
Member 88279715-Mar-05 19:11 
GeneralRe: PropertyGrid - Internet Explorer hosting problem Pin
Member 88279717-Mar-05 20:21
Member 88279717-Mar-05 20:21 
GeneralCrossWord puzzle alogrithm Pin
Mohsen Saad15-Mar-05 18:06
Mohsen Saad15-Mar-05 18:06 
GeneralRe: CrossWord puzzle alogrithm Pin
Colin Angus Mackay16-Mar-05 0:14
Colin Angus Mackay16-Mar-05 0:14 
GeneralCrystal Report:The LoadSaveReportException: Load Report Error Pin
Bing Chen15-Mar-05 10:41
Bing Chen15-Mar-05 10:41 
QuestionHow to send info out the lpt port????? Pin
mjvone15-Mar-05 10:09
mjvone15-Mar-05 10:09 
AnswerRe: How to send info out the lpt port????? Pin
Christian Graus15-Mar-05 10:47
protectorChristian Graus15-Mar-05 10:47 
QuestionHow can I make Control Array in VB.net Pin
Suman Singh15-Mar-05 10:07
professionalSuman Singh15-Mar-05 10:07 
AnswerRe: How can I make Control Array in VB.net Pin
Ray Cassick15-Mar-05 10:50
Ray Cassick15-Mar-05 10:50 
AnswerRe: How can I make Control Array in VB.net Pin
pfsoft16-Mar-05 20:17
pfsoft16-Mar-05 20:17 
Generalcolor in a combobox items Pin
wgalafassijr15-Mar-05 9:28
wgalafassijr15-Mar-05 9:28 
GeneralRe: color in a combobox items Pin
Tom John15-Mar-05 9:41
Tom John15-Mar-05 9:41 
GeneralRe: color in a combobox items Pin
wgalafassijr15-Mar-05 9:53
wgalafassijr15-Mar-05 9:53 
QuestionHow to change Column name in Datagrid Pin
Suman Singh15-Mar-05 9:06
professionalSuman Singh15-Mar-05 9:06 
AnswerRe: How to change Column name in Datagrid Pin
eshban28416-Mar-05 3:01
eshban28416-Mar-05 3:01 
Questionhow to set date mask Pin
eshban28415-Mar-05 8:28
eshban28415-Mar-05 8:28 
AnswerRe: how to set date mask Pin
Dave Kreskowiak15-Mar-05 9:16
mveDave Kreskowiak15-Mar-05 9:16 

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.