Hi all,
I have a page of aspx and a listbox. I want to format font for 3 last lines of my listbox with Bold Style by code. Notice that my lisbox has more than 3 lines, and I don't know exactly text for the first three items of the list until my web application runs.
Lines of text are added to my listbox by the following way:
Would you give me any sugestion?
Thanks for your helping!
I have a page of aspx and a listbox. I want to format font for 3 last lines of my listbox with Bold Style by code. Notice that my lisbox has more than 3 lines, and I don't know exactly text for the first three items of the list until my web application runs.
Lines of text are added to my listbox by the following way:
Code:
foreach (DataRow row in dt.Rows) { string Msg = string.Format("{0} : {1}", row["Id"], row["Name_"]); lstHisttory.Items.Add(Msg); //lstHistory is my listbox }
Would you give me any sugestion?
Thanks for your helping!
Comment