Jump to content


Photo

Scrolling to a Column or Making a Column Visible.


  • Please log in to reply
3 replies to this topic

#1 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 25 November 2020 - 09:04 AM

Hi Boki,

 

I have a grid with quite a few columns.  Is there a way I can scroll to a specific column with code, or make the column visible?

 

Basically each column has a username, and I also have a listbox with a list of the same users.  What I would like to do is to scroll horizontally to a column when the user selects a name from the listbox.

 

Thanks,

 

Steve



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 25 November 2020 - 05:04 PM

Hi Steve,

 

Maybe you can use something like:

 

 NxReportGridView61.ScrollToCol(ColIndex);

boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 25 November 2020 - 10:33 PM

 

Hi Steve,

 

Maybe you can use something like:

 NxReportGridView61.ScrollToCol(ColIndex);

Thanks Boki.  I had forgotten to check the GridView.  That's perfect.

 

Thanks!

 

Steve



#4 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 15 August 2023 - 02:38 AM

Hi Boki,

 

You answered this question for me nearly 3 years ago.  Now I have another question about the same thing.

 

When using ScrollToCol(ColIndex), the column appears to the very right of the columns in view (see attached screenshot).  Is there a way It can be brought more to the left (providing there are more columns after it)?

 

Thanks.

 

= Steve

 

Attached Files






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users