Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert an int to a string

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, I am using a listview control, and i cannot add the value i want to the control as it is not in string format, but in Int.

Anyone know how to add an int to the listview?
Code:
up the top area

// listview
ListViewItem listViewItem1 = new ListViewItem();

// in a private method
ID = (Int32) dbReader.GetValue(0);

listViewItem1 = lvResults.Items.Add(ID);
am i doing this the wrong way?

Regards,

Martin

Computing Design And Services:
 
ID.ToString();

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top