>I would like to know how I can disable an item in a list box or a row in a grid and manipulate the same during run time. I have an appliation where I have to disable the list box item, if selected. could somebody help me by mailing a solution to shanky@md2.vsnl.net.in
For listbox you can disable a item only if you used Listbox.Rowsourcetype=0, i.e. list filled using:
Thisform.List1.Additem("item1")
To make the item disabled you add slash:
Thisform.List1.Additem("\item1")
For grid, you can use either Column.Control.When event returning .f. in a case you want the control to be 'disabled', or (I think it's better), you use Column.DynamicCurrentControl property toggling two available controls (enabled/disabled), depending on some value.
Edward Pikman
Independent Consultant