Victor Charles
asked on
Help with displaying data from string variable in a DataGrid using VB.NET
Hi,
If I have a string variable S = BEL,CAN,FRA,USA
How do I display the values in a DataGrid as shown below? My string will vary, just using values in S as an example.
BEL
CAN
FRA
USA
Thanks,
Victor
If I have a string variable S = BEL,CAN,FRA,USA
How do I display the values in a DataGrid as shown below? My string will vary, just using values in S as an example.
BEL
CAN
FRA
USA
Thanks,
Victor
ASKER
I need to add the data in one column. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You.
Great, so you figured out, I didn't add the comma in the Split parameter :)
Dim str As String() = {"BEL","CAN","FRA","USA"}
dgdatagridview1.Rows.Add(S