Click here to Skip to main content
15,885,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVPN connection in vb.net Pin
~V~12-Nov-07 20:06
~V~12-Nov-07 20:06 
AnswerRe: VPN connection in vb.net Pin
~V~13-Nov-07 20:39
~V~13-Nov-07 20:39 
QuestionEnumeration Pin
danasegaranea12-Nov-07 19:49
danasegaranea12-Nov-07 19:49 
AnswerRe: Enumeration Pin
Paul Conrad28-Nov-07 15:16
professionalPaul Conrad28-Nov-07 15:16 
QuestionInstaller issue vb2005 : Need urgent help Pin
nishkarsh_k12-Nov-07 19:19
nishkarsh_k12-Nov-07 19:19 
AnswerRe: Installer issue vb2005 : Need urgent help Pin
Christian Graus12-Nov-07 19:59
protectorChristian Graus12-Nov-07 19:59 
GeneralRe: Installer issue vb2005 : Need urgent help Pin
nishkarsh_k12-Nov-07 20:10
nishkarsh_k12-Nov-07 20:10 
QuestionCombobox Column In Datagridview [modified] Pin
~V~12-Nov-07 18:43
~V~12-Nov-07 18:43 
Laugh | :laugh: Hi all,
I am working in vb.net,In my application i want to display combobox in a column of datagridview so that the user can select a item of combo,so i used this code:-


 Me.DataGridView2.DataSource = Me.ds.Tables(0)<br />
<br />
        With DataGridView2<br />
<br />
            Dim cmbcol As New DataGridViewComboBoxColumn<br />
<br />
            With cmbcol<br />
                .DataPropertyName = "emp_id"<br />
                .HeaderText = "emp_name"<br />
                .Width = 80<br />
                .DataSource = ds.Tables(0)<br />
                .ValueMember = "emp_id"<br />
                .DisplayMember = "emp_name"<br />
            End With<br />
            .Columns.Add(cmbcol)<br />
        End With


But there are some problems

1> First of all i am using dataset binding and i want to display this combobox in second column but it is displayed at the end of all columns.Mad | :mad:

2>Second is selection of the item of combobox is not properly worked,i need to use emp_id when user select the name of employee in combobox of datagridviewMad | :mad:

Any idea would be appreciated heartly
Thanks with anticipationBlush | :O


-- modified at 1:40 Tuesday 13th November, 2007
AnswerRe: Combobox Column In Datagridview Pin
Paul Conrad28-Nov-07 15:14
professionalPaul Conrad28-Nov-07 15:14 
QuestionCAPTION Pin
PRIYA (P)12-Nov-07 18:30
PRIYA (P)12-Nov-07 18:30 
AnswerRe: CAPTION Pin
Christian Graus12-Nov-07 19:58
protectorChristian Graus12-Nov-07 19:58 
GeneralIt's a dead language Pin
Steven J Jowett13-Nov-07 0:51
Steven J Jowett13-Nov-07 0:51 
GeneralRe: It's a dead language Pin
Paul Conrad28-Nov-07 15:15
professionalPaul Conrad28-Nov-07 15:15 
GeneralRe: CAPTION Pin
Irfan Baig29-Jan-08 18:13
Irfan Baig29-Jan-08 18:13 
QuestionWriting a code within a string Pin
mykingdomforanewusername12-Nov-07 12:41
mykingdomforanewusername12-Nov-07 12:41 
AnswerRe: Writing a code within a string Pin
Luc Pattyn12-Nov-07 14:57
sitebuilderLuc Pattyn12-Nov-07 14:57 
QuestionOpen a file from Local disk Pin
recono112-Nov-07 12:22
recono112-Nov-07 12:22 
AnswerRe: Open a file from Local disk Pin
Luc Pattyn12-Nov-07 14:54
sitebuilderLuc Pattyn12-Nov-07 14:54 
AnswerRe: Open a file from Local disk Pin
Baddog_52017-Nov-07 16:43
Baddog_52017-Nov-07 16:43 
QuestionFaxing from word.doc from VB Pin
simonk196912-Nov-07 11:59
simonk196912-Nov-07 11:59 
QuestionDatagrid Hyperlink column Pin
Num1CodeStudent12-Nov-07 8:59
Num1CodeStudent12-Nov-07 8:59 
QuestionMake any sense? Pin
cstrader23212-Nov-07 5:06
cstrader23212-Nov-07 5:06 
AnswerRe: Make any sense? Pin
Paul Conrad28-Nov-07 15:14
professionalPaul Conrad28-Nov-07 15:14 
GeneralRe: Make any sense? Pin
cstrader23228-Nov-07 17:14
cstrader23228-Nov-07 17:14 
GeneralRe: Make any sense? Pin
Paul Conrad28-Nov-07 17:36
professionalPaul Conrad28-Nov-07 17:36 

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.