Jump to content

dbgrid columns count


jahlxx

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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...