Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckBoxList Displays Weird
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
CheckBoxList Displays Weird
Miscellaneous
Thread ID:
01455599
Message ID:
01455599
Views:
73
I have a CheckBoxList on my ASP.Net page. I'm loading it like this:
private void _UserSelected()
{
    lstRights.Items.Clear();
    lstRights.Font.Name = "Arial";
    lstRights.Font.Bold = false;
    lstRights.Font.Size = 10;
    lstRights.TextAlign = TextAlign.Left;

    int UserKey = Convert.ToInt32(cboUsers.SelectedValue);

    csUser User = new csUser();
    User.RecordKey = UserKey;
    User.LoadData();

    DataSet dsRights = User.RightsTable;

    lstRights.DataSource = dsRights.Tables[0];
    lstRights.DataTextField = "RightName";
    lstRights.DataBind();
}
There are only 4 items, which is ok, but each item is centered in the list, and each row is separated from the other alot, almost like
there's blank rows in between each.

I have not changed any settings in this control, other than what's in this method.

What am I doing wrong here?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Reply
Map
View

Click here to load this message in the networking platform