Can I delete/hide the header row of LISTVIEW?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Can I delete/hide the header row of LISTVIEW?

    I don't want to use a header, is there a possibility to delete/hide the header in LISTVIEW?



    And a personal message to Adrian. Dude, If u don't mind can you please share you Yahoo!/GTalk id so that I can get my doubts clarified. I'm really in a hurry to complete my work, but yet to explore many options. Hope your experience will help me in Doing things fast. I'm assure you that I won't bug you with dumb questions. Thank you.

    The post was edited 1 time, last by rahul ().

  • Dear Rahul,

    The fastest method of hiding the HEADER widget is to set its y-size to 0.

    C Source Code

    1. hHeader = LISTVIEW_GetHeader(_hListView); // Get the handle of the HEADER widget
    2. xSize_Header = WM_GetWindowSizeX(hHeader); // Get the x-size of the HEADER widget
    3. WM_SetSize(hHeader, xSize_Header, 0); // Set the y-size to 0, but keep the x-size

    Unfortunately we usually do not offer support via telephone or chat. Sorry about that.

    Best regards,
    Adrian