Insert whitespace between characters in listbox

后端 未结 4 1475

I am trying to insert items into a listbox in my asp.net C# application

I concatenate some values and put whitespace in between them but it doesn\'t show up in the l

4条回答
  •  悲哀的现实
    2021-01-14 04:54

    Try

    lt.Text = string.Format("{0}\ \;{1}\ \;{2}",ItemName,barcode,price);

    Replace \ \ with   If you cannot see.

    Or

    lt.Text = string.Format("{0} {1} {2}",ItemName,barcode,price);

提交回复
热议问题