try abc

try abc

  • 1.4k
  • 306
  • 488k

Problem with Listview Backcolor Property

Feb 13 2008 11:37 PM
Hello all,
I have use the Following code...


if (flag == true)
{

((ListView)cntrl).Enabled = false;
((ListView)cntrl).BackColor = Color.White;
}
else
{
((ListView)cntrl).Enabled = true;
}


After enabling Listview to false, the backcolor changes to Default Control. instaead of white which i set... what is happninh here.. does any perooprty is remaining to change???



Answers (3)