我有一個asp頁面此下拉列表:多列下拉列表 - 使用不同的顏色爲每列
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
DropDownList1.Items.Add(string.Format("{0:}", ds.Tables[0].Rows[i]["Pnum"]) +
spacer + (ds.Tables[0].Rows[i]["Project"]) + spacer +
(ds.Tables[0].Rows[i]["Description"]));
}
這很好地顯示了這樣的事情:
我知道弦沒有顏色屬性。 但是,我想知道是否有一種方法來獲取以不同顏色顯示dropDownList的內容?就像這樣:
我不明白你的答案與我關於DropDownList的問題是否吻合! – FeliceM