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