Solved

Grid - show hide cell

Posted on 2002-04-23
2
809 Views
Last Modified: 2010-04-04
TAdvStringGrid problem

How to show specific hide cell in grid with button click ?

Thanks.
0
Comment
Question by:cvbmn
2 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6966543
hi,

i don't know about TAdvStringGrid,
but do you mean cell or column
(a cell cannot be hidden,
but you could clear the content)

if you mean column, then move all columns right of the column you will hide one step to left like

function hideAColumn(ColIndex : Integer) : TStringList;
begin
  result := gridname.cols[i]; //return the content of the col, for later restore, if needed
  for i := colindex+1 to gridname.colcount-1 do
    gridname.cols[i-1].assign(gridname.cols[i]);
  gridname.colcount := gridname.colcount - 1;
end;

meikl ;-)
   
0
 
LVL 2

Accepted Solution

by:
vbmn earned 400 total points
ID: 6967586
Specifies the index
property Row: Longint;
property Col: Longint;

Advstringgrid1.Row:=20;
Advstringgrid1.Col:=20;
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question