try abc

try abc

  • NA
  • 199
  • 410.1k

Problem with ListVew Enable Property

Feb 8 2008 7:55 AM
Hello all,
I have used 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???

Actually i want to make the ListView REadonly.. But i didnt find any read only proprty.. Does Anybody knows how to solve this.. PLz REply..