Click here to Skip to main content
16,006,594 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to know which port is open Pin
Paritos12-Jan-06 23:35
Paritos12-Jan-06 23:35 
AnswerRe: how to know which port is open Pin
Dave Kreskowiak13-Jan-06 4:13
mveDave Kreskowiak13-Jan-06 4:13 
QuestionSystem.Net.Mail.MailMessage + Signature Pin
capitan_cavernicola12-Jan-06 23:34
capitan_cavernicola12-Jan-06 23:34 
AnswerRe: System.Net.Mail.MailMessage + Signature Pin
capitan_cavernicola20-Jan-06 4:14
capitan_cavernicola20-Jan-06 4:14 
Questionactual datagrid column width Pin
Lonzo12-Jan-06 22:50
Lonzo12-Jan-06 22:50 
AnswerRe: actual datagrid column width Pin
Dean_SF13-Jan-06 8:35
Dean_SF13-Jan-06 8:35 
QuestionOutlook programming Pin
Anil_vvs12-Jan-06 22:06
Anil_vvs12-Jan-06 22:06 
QuestionComboBox in DataGrid problem ! Pin
thaohoph12-Jan-06 21:39
thaohoph12-Jan-06 21:39 
Dear Sir or Madam,

Now I use a datagrid and I want a column of this datagrid is the combobox.
I use DataGridTableStyle and I add a DataGridComboBoxColumnStyle in the column. The ComboBox has 3 field: DataSource, DisplayMember, ValueMember.
But now I have a problem: after I choose one value from ComboBox, it return ValueMember and display ValueMember on DataGrid. Don't display DisplayMember on the DataGrid.
I want after I choose one value from ComboBox, it will return ValueMember and display DisplayMember on the datagrid.
Thank you very much for any help !
And my code here:

Dim tableStyle As New DataGridTableStyle
With tableStyle
.MappingName = "ArrayList"
''Step 2:Mapping columns for TableStyle
Dim CheckedCol As New DataGridBoolColumn 'NoNullBoolColumn
With CheckedCol
.MappingName = "HasThisSkillItem"
.HeaderText = ""
.Width = 30
.AllowNull = False
End With
tableStyle.GridColumnStyles.Add(CheckedCol)
Dim column As New DataGridTextBoxColumn
With column
.MappingName = "SKILL_ITEM_NAME"
.ReadOnly = True
.HeaderText = "Item Name"
.Width = 200
End With
tableStyle.GridColumnStyles.Add(column)
column = New DataGridTextBoxColumn
With column
.MappingName = "DURING_EXP_YEARS"
.HeaderText = "Exp.Y"
.Width = 40
.NullText = ""
End With
tableStyle.GridColumnStyles.Add(column)
column = New DataGridTextBoxColumn
With column
.MappingName = "DURING_EXP_MONTHS"
.HeaderText = "Exp.M"
.Width = 40
.NullText = ""
End With
tableStyle.GridColumnStyles.Add(column)
column = New DataGridTextBoxColumn
With column
.MappingName = "LAST_USED_MONTH_YEAR"
.HeaderText = "Last uses M-Y"
.Width = 80
' .NullText = ""
End With
tableStyle.GridColumnStyles.Add(column)
Dim CboColumn As DataGridComboBoxColumnStyle
CboColumn = New DataGridComboBoxColumnStyle(LoadSkillLevels(), "CODENAME", "CODETYPEID")
With CboColumn
.MappingName = "SKILL_LEVEL_CODE"
.HeaderText = "Level"
.Width = 100
.NullText = ""
End With
tableStyle.GridColumnStyles.Add(CboColumn)

column = New DataGridTextBoxColumn
With column
.MappingName = "REMARK"
.HeaderText = "Remark"
.Width = 200
' .NullText = ""
End With
tableStyle.GridColumnStyles.Add(column)
End With
'Step 3: Add the tablestyle to the datagrid
'thanhphu
dtgSkill.DataSource = arrSkill
dtgSkill.TableStyles.Add(tableStyle)

Note: arrSkill is an arrayList of EmployeeSkill information.

Carollynn Ann

-- modified at 3:53 Friday 13th January, 2006Big Grin | :-D
QuestionAny Body Can Help Me with ODBC Pin
Swiss Mantoro12-Jan-06 21:31
Swiss Mantoro12-Jan-06 21:31 
AnswerRe: Any Body Can Help Me with ODBC Pin
Arthur van der Merwe13-Jan-06 2:53
Arthur van der Merwe13-Jan-06 2:53 
GeneralRe: Any Body Can Help Me with ODBC Pin
Swiss Mantoro15-Jan-06 22:55
Swiss Mantoro15-Jan-06 22:55 
QuestionInstalled MS Office, how to show document in window form? Pin
cylix200012-Jan-06 20:40
cylix200012-Jan-06 20:40 
AnswerRe: Installed MS Office, how to show document in window form? Pin
_NinethSense_12-Jan-06 22:44
_NinethSense_12-Jan-06 22:44 
QuestionAccess Connection Issue In VB.Net Pin
mayhem_rules12-Jan-06 18:23
mayhem_rules12-Jan-06 18:23 
AnswerRe: Access Connection Issue In VB.Net Pin
mayhem_rules12-Jan-06 18:49
mayhem_rules12-Jan-06 18:49 
GeneralRe: Access Connection Issue In VB.Net Pin
_NinethSense_12-Jan-06 22:58
_NinethSense_12-Jan-06 22:58 
GeneralRe: Access Connection Issue In VB.Net Pin
Dave Kreskowiak13-Jan-06 4:07
mveDave Kreskowiak13-Jan-06 4:07 
Questioninsert values in datagrid Pin
vivek_pon12-Jan-06 18:03
vivek_pon12-Jan-06 18:03 
AnswerRe: insert values in datagrid Pin
gharry12-Jan-06 22:44
gharry12-Jan-06 22:44 
GeneralRe: insert values in datagrid Pin
vivek_pon13-Jan-06 1:43
vivek_pon13-Jan-06 1:43 
GeneralRe: insert values in datagrid Pin
gharry13-Jan-06 5:12
gharry13-Jan-06 5:12 
AnswerRe: insert values in datagrid Pin
_NinethSense_12-Jan-06 22:59
_NinethSense_12-Jan-06 22:59 
QuestionHow to show a fit size of jpg Pin
cylix200012-Jan-06 16:31
cylix200012-Jan-06 16:31 
AnswerRe: How to show a fit size of jpg Pin
Owner drawn12-Jan-06 19:12
Owner drawn12-Jan-06 19:12 
GeneralRe: How to show a fit size of jpg Pin
cylix200012-Jan-06 20:34
cylix200012-Jan-06 20:34 

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.