May 06, 2024, 03:37:54 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


In a LISTVIEW, have first Column NOT changeable

Started by billhsln, February 15, 2008, 10:32:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

I am using a LISTVIEW to display Data Base Information.  The first column of which will be the Record_ID, which I do not wish to be changed.  So, I would like this field to be uneditable.  Can that be set from within a LISTVIEW or must it be programmed around?  I just want to make it so that if you click on Column 0, it will not allow you to make changes or at least not take any changes that are made.

Thanks,
Bill
When all else fails, get a bigger hammer.

LarryMc

Why even show it?
Use CONTROLCMD  window | dialog, ID, @LVSETCOLWIDTH, column, widthto set the column width to zero so it won't display.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

Excellent way to make it unchangeable.   I have already implemented it and it seems to be exactly what I needed.  You are right, I want to store it in the row, but do not really need it displayed.

Thanks for the help Larry,  this will make life much easier.

Thanks again,
Bill
When all else fails, get a bigger hammer.