In my project I generate a list box during runtime. I give a title 'SELECT BLOCK' to that list box at zero index. Can I give a diff color to that title. My code:
DataSet ds1 = new DataSet("block");
da1.Fill(ds1, "block");
for (int i = 0; i < ds1.Tables[0].Rows.Count; i++)
{
adds1.Add(ds1.Tables[0].Rows[i].ItemArray[0].ToString());
string name1 = ds1.Tables[0].Rows[i]["block_name"].ToString();
}
adds1.Sort((x, y) => string.Compare(x, y));
adds1.Insert(0, "SELECT BLOCK");
ListBox1.DataSource = adds1;
ListBox1.DataBind();
ListBox1.Visible = true;
Can anyone advice?
Regards.