You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi I am trying to build an utility to hide and unhide the columns in a datawindow. The problem is if I have 10 columns and if i hid the 2nd column with the modify function, and later unhide it it is displayed as the 10th column and not as the second columns. What do I need to do to get it to its original place. Thanks Shankar
VestyBoy
unread,
Oct 6, 1999, 3:00:00 AM10/6/99
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
How are you hiding the column? If you are using the visible attribute there should be no problems. Another suggestion would be to set the foreground colour to the background colour.
I think you are using a grid datawindow. To restore the column to the second position you should set it's x- position to a value between the x-positions of the first column and the third column. I had similar problems and a better solution to hide the column was to set its width to zero.
Michael Chernin
unread,
Oct 7, 1999, 3:00:00 AM10/7/99
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
It seem's to me that the cause of your problem is grid layout. Try to use tabular one.
Shankar <SHANK...@HOTMAIL.COM> wrote in message news:dI3dCCDE$GA....@forums.sybase.com...
Ram Samant
unread,
Oct 7, 1999, 3:00:00 AM10/7/99
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
You can also just store the X & Y of the columns that you try to hide. When you want to show them again just use dw.modify() You will need to store the col.X & Col.Width for this.