Thread
:
get value in combobox
View Single Post
#
2
(
permalink
)
01-02-2009, 7:08 AM
JohnH
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,329
Reputation:
1315
You can use the Value, or FormattedValue if you have different value/display members.
Code:
Dim display As String = Me.DataGridView1.CurrentRow.Cells(0).FormattedValue.ToString
__________________
Some useful links:
Learning videoes
,
Code Samples
,
WMI Code Creator
,
MSDN
,
The Code Project
,
WindowsClient.net
,
ASP.net
,
W3 Schools
,
Regular-Expressions.info
,
GDI+ FAQ
How to format posts
with code blocks etc - present the problem/post properly
JohnH
View Public Profile
Send a private message to JohnH
Find all posts by JohnH