How to select entire COLUMN  in datawindow

Posted on 2009-04-28
Last Modified: 2013-12-26
hi all :) it is easy to select eniter row but is there a way to select entire column.
When i click on any row in DW  i want it to select the column (same as when clicking on the header) i just cant find a solution anywhere :(

any help, thanks in advance
Question by:azana
    LVL 14

    Expert Comment

    Any specific reason for selecting entire column? However grid type datawindow allows that.


    Author Comment

    am trying to give the user the ability to delete columns that he doesnot want :)
    Ya the grid gives the ability to select entire column but only if i click on the header :( but not when clicking on the cell (or at least i cant figure how :'( )
    LVL 14

    Accepted Solution

    write this in clicked event of datawindow and check. This should work for any type of datawindow. To delete the column you may need to stored the column name in instance variable when clicked and then on del key pressed or buttton pressed set visible property to false for that column

    To change background color

    string ls_ret
    long ll_count

    If dwo.type = 'column' Then
    For ll_count = 1 TO Long(this.object.datawindow.column.count)
          If This.Describe('#'+string(ll_count)+".name") = Then
          End If
    End If

    To delete column

    where is_column is instance variable is value should be assigned in clicked event of that datawindow as below

    If dwo.type = 'column' Then
    is_column =
    End If


    Author Closing Comment

    never ever would thought to change the background color :P
    :D :D :D made my day :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now