Iam afraid you cannot do with this as you have to use  a monospacecd font in
the dropdown , not the default one.

On Fri, Jul 17, 2009 at 1:26 AM, Wylie <wyli...@gmail.com> wrote:

>
> I have a C# dropdownlist that I'm faking multiple columns on using
> whitespace and vertical bar.
>
> my code:
> string AccountItem = Account.PadRight(60) + "| " + City.PadRight(60) +
> "| " + State.PadRight(30) + "| " + dr["CContactName"].ToString();
>
>  this.cboAccount.Items.Add(new ListItem(AccountItem,dr
> ["AccountID"].ToString()));
>
> My problem is when I look at the string AccountItem in debug mode it
> looks correct with evenly spaced vertical bars.  But all the
> whitespace disappears from the drop list.   What am I missing?
>
> -wylie
>



-- 
My Web Site
http://everlovingyouth.googlepages.com
My Technical Blog
http://acutedeveloper.blogspot.com
Skype :santhoshnta
Orkut :everlovingyouth

Reply via email to