Posts: 1,271
Threads: 399
Joined: Mar 2003
how do i toggle visibility of a column ?
hiding is nt a problem, but how to unhide ?
works:
dialog_einzel_ansicht
,,da2._getcontrol(id(11 hDlg))
,,da2.Columns.Item(0).Visible=0
works not:
dialog_einzel_ansicht
,,da2._getcontrol(id(11 hDlg))
,,da2.Columns.Item(0).Visible=1
Posts: 12,097
Threads: 142
Joined: Dec 2002
try Visible=-1
In OLE Automation TRUE is word 0xffff (which is = int -1), although most functions also recognize 1 as TRUE.
Posts: 1,271
Threads: 399
Joined: Mar 2003
thats weird, its working for all other columns,
but not for column 0.
Posts: 1,271
Threads: 399
Joined: Mar 2003
ok, here is a trick for column 0
,,da2.Columns.Item(0).Visible=1
,,da2.Scroll(-1 0)
Posts: 1,271
Threads: 399
Joined: Mar 2003
do you have an idea how to have tab ignore locked columns ?
like jump from column 1 to column 3 when using
dg.Columns.Item(2).Locked="true"
thanks
Posts: 1,271
Threads: 399
Joined: Mar 2003
how do i output LastRow ?
dal_RowColChange
;/
function VARIANT&LastRow @LastCol ;;MSDataGridLib.IDataGrid'dal
out LastRow throws Error (RT) in dal_RowColChange: 0x80020005, Typkonflikt.
thanks
Posts: 12,097
Threads: 142
Joined: Dec 2002
LastRow type must be one of types that can be converted to string. If it is for example VT_NULL, it cannot be converted to string. Make sure that LastRow.vt is not VT_NULL or other incompatible type. If it is, out "" instead. Or just use out LastRow; err out "".
Posts: 1,271
Threads: 399
Joined: Mar 2003
_pi Wrote:do you have an idea how to have tab ignore locked columns ?
like jump from column 1 to column 3 when using
dg.Columns.Item(2).Locked="true"
found that:
Skipping columns when tabbing on a DataGrid
http://www.devx.com/vb2themax/Tip/18883