Solution
The coordinate of header cell is -1 for the row index. However, when the input value of
Edit Position property node is -1, the property node will use default value 0 instead.
The current workaround is to create a case structure to handle the row index of -1. An example code below will prompt a dialog box that requires user to key in the header name whenever the header cell is clicked. The new header value is inserted to the array of current header list and the listbox is subsequently updated by passing the header array to
Column Header Strings[] property node.
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.