//---take item and cost & put them in textboxs string itemSelected = lstItems.Text.Substring(0,15); string price = lstItems.Text.Substring(16); itemSelected = itemSelected.Trim(); price = price.Trim(); // optional way: decimal price =Convert.ToDecimal( lstItems.Text.Substring(16).Trim()); //---now assign values to the textboxes txtItem.Text = itemSelected.Trim(); txtCost.Text = price.Trim();