how to display string on different line in list box C#
hi,
how to bind a string to listbox such a way that after ',' string should be displayed on new line and at the center of the list box
Eg:
AAA,BBB,CCC,DDD
AAA,
BBB,
CCC,
DDD
Code:
here addressDetailItem is list object
if (addressDetailItem != null)
{
lstAddressResult.DataSource = addressDetailItem;
lstAddressResult.DisplayMember = "Title";
lstAddressResult.ValueMember = "Detail";
}