Solved

Grid - show hide cell

Posted on 2002-04-23
2
807 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
Comment Utility
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
Comment Utility
Specifies the index
property Row: Longint;
property Col: Longint;

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now