Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / May 2007



Tip: Looking for answers? Try searching our database.

Add combo box or listbox in datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ritesh shrimal - 27 May 2007 13:03 GMT
Dear Expert,

I want to use datagrid in my project , i have created one table in access
and also configured one of its field lookup for combobox and set Sql
Query.when i open table in access itslelf .i m  getting combobox for that
field.but when i access that tabel from datagrid,i am not getting
combobox.So i want to know how can i get combobox in datagrid.

best regards,
ritesh shrimal
gurdeep toor - 29 May 2007 16:43 GMT
'Try The following,<br/>
Private Combo1 As New ComboBox()<br/><br/>

With Combo1 <br/>
           .Name = "Job Type"<br/>
           .Visible = False<br/>
           .Items.Clear()<br/>
           .Items.Add("Item1")<br/>
           .Items.Add("Item2")<br/>
           .Items.Add("Item3")<br/>
       End With<br/>

If DataGrid11.CurrentCell.ColumnNumber = 3
DataGrid11.Controls.Add(Combo1)
Combo1.visible= False
end if

'Hope That will Work

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.