Jump to content

Recommended Posts

Posted

Hi.

When I hide a column in a dbgrid, the column count I think is not correct.

If I have 10 columns, column count is 10. but if I hide one column, the column count is 9.

This could be ok or not, depending the point of view of every one.

Is there any option to get the real number of columns including the hidden columns?

Thanks.

Posted
18 minutes ago, jahlxx said:

Is there any option to get the real number of columns

 

first you need to show your code

Posted

well, there is no code for this.

I hide the column with this, check or uncheck in the columns, to hide and/or show:

imagen.png.ba58f7db675bd28973545ca5903fffd5.png

 

before uncheck column count is 10, and after uncheck one, the column is hidden and the column count is 9.

 

Posted
Just now, jahlxx said:

before uncheck column count is 10, and after uncheck one, the column is hidden and the column count is 9.

checkboxes for and DESIGNED to hide and show columns

Posted

Well, perhaps.

I think I understand, but could be wrong.

As I know, the checkboxes are to hide show columns in the grid. And as I can see, if I hide a column, the columncount returns a different vale. And fom my point of view, the columncount should not change. The count of columns should be the same, because I have 9 visible columns and 1 hidden column, 10 columns in total, not 9.

Posted

Version 1.90.0.1539

 

I saw your example, and I think that the problem is that you have defined columns ai design time, and I define columns in run-time. That's the problem. In thar case, the counter fails.

 

Posted
3 hours ago, jahlxx said:

I saw your example, and I think that the problem is that you have defined columns ai design time, and I define columns in run-time. That's the problem. In thar case, the counter fails.

Hello,

Sorry, can you please make simple testcase to see the issue?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...