CheckBoxList Headers
I have created a CheckBoxList that inserts information in columns. The columns are separated by '+ "</TD><TD>" +' . However, what I cannot figure out is if there is a way to add headers to these columns. Below is part of the code for the list
int cnt = 0;
while ( objReaderUser.Read() == true )
{
ListItem listEst = new ListItem();
listEst.Text = "<TD>" + objReaderUser["est_name"].ToString() + "</TD><TD>" + objReaderUser["est_location"].ToString() + "</TD><TD>" + objReaderUser["state"] + "</TD><TD>" + "</TD><TD>"+ objReaderUser["business_type"] + "</TD><TD>" + objReaderUser["est_capacity"] + "</TD><TD>" + objReaderUser["est_grade"] + "</TD>";
listEst.Value = objReaderUser["est_id"].ToString();
cblEst.Items.Add( listEst );
cnt++;
}
objReaderUser.Close();
if you know of a way please respond.
|