Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,072 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,789 people online right now. Registration is fast and FREE... Join Now!




DatagridView dropDownBox and selectedindexchanged

 
Reply to this topicStart new topic

DatagridView dropDownBox and selectedindexchanged

deere2007
25 Feb, 2008 - 08:16 PM
Post #1

New D.I.C Head
*

Joined: 28 Sep, 2007
Posts: 32


My Contributions
I have a datagridview that has five columns and the first one is a dropdownbox. I am trying to make the value of the dropdownbox determine the value of the second column (the first & last name will be used to get the employee's position to populate the second column).

How do I set up an selectedindexchanged event in a datagrid?


Here is my code to load the dropDownBox

CODE


Dim emp_array As New ArrayList

        emp_array = Employee.GetAll

        Dim i As Integer = 0

        If emp_array.Count > 0 Then

            For Each employee In emp_array
                aEmp = emp_array(i)

                Me.Column1.Items.Add(aEmp.GetFirstName & " " & aEmp.GetLastName)

                i = i + 1

            Next

        End If



This post has been edited by deere2007: 26 Feb, 2008 - 09:24 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:02PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month