Problem with ListVew Enable Property

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpfreak2007
    New Member
    • Sep 2007
    • 31

    Problem with ListVew Enable Property

    Hello all,
    I have use the Following code...


    if (flag == true)
    {

    ((ListView)cntr l).Enabled = false;
    ((ListView)cntr l).BackColor = Color.White;
    }
    else
    {
    ((ListView)cntr l).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..
Working...