Set same background for all rows in a datalist
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Piyush R.85 reputationPosted Sep 30, 2014, 2:11 AM EDT
I have read your problem and want to tell you that your code will not work because ItemTemplate have no any Backcolor property.
And here is your solution.It will give the same result what you want.
You can set the itemstyle property to set particular Backcolor as follow.
(select datalist->property->itemstyle->"have 5 option for dataitem". )
Try this It'll work sure.
Saber ShaikhRank #1,687 · 905 reputationPosted Sep 30, 2014, 8:09 PM EDT