Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MSDataGridLib.DataGrid
#1
how do i toggle visibility of a column ?
hiding is nt a problem, but how to unhide ?

works:
dialog_einzel_ansicht
Code:
Copy      Help
,,da2._getcontrol(id(11 hDlg))
,,da2.Columns.Item(0).Visible=0

works not:
dialog_einzel_ansicht
Code:
Copy      Help
,,da2._getcontrol(id(11 hDlg))
,,da2.Columns.Item(0).Visible=1
pi
#2
try Visible=-1

In OLE Automation TRUE is word 0xffff (which is = int -1), although most functions also recognize 1 as TRUE.
#3
thats weird, its working for all other columns,
but not for column 0.
pi
#4
ok, here is a trick for column 0


Code:
Copy      Help
,,da2.Columns.Item(0).Visible=1
,,da2.Scroll(-1 0)
pi
#5
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
pi
#6
how do i output LastRow ?

dal_RowColChange
Code:
Copy      Help
;/
function VARIANT&LastRow @LastCol ;;MSDataGridLib.IDataGrid'dal

out LastRow throws Error (RT) in dal_RowColChange: 0x80020005, Typkonflikt.

thanks
pi
#7
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 "".
#8
_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
pi


Forum Jump:


Users browsing this thread: 2 Guest(s)