Jump to content


Photo

Setting Fixed Columns.


  • Please log in to reply
5 replies to this topic

#1 Speed

Speed
  • Members
  • 87 posts

Posted 22 June 2020 - 08:31 AM

Hi Boki,

 

I do I set fixed columns?

 

I tried MyGrid.ActiveView.FixedColCount := 3 but that didn't do anything.

 

Thanks,

 

= Steve

 



#2 Speed

Speed
  • Members
  • 87 posts

Posted 22 June 2020 - 09:06 AM

Sorry, that was meant to read "How do I set fixed columns?"

 

= Steve



#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,893 posts
  • Gender:Male

Posted 22 June 2020 - 09:51 AM

Hi,

 

Please modify next procedure inside NxGridView6.pas file:

 

procedure TNxGridView6.SetFixedColCount(const Value: Integer);
begin
  if (Value <> FFixedColCount)
    and (Columns.Exist(Value) or (csLoading in ComponentState)) then // <--- changed line
  begin
    FFixedColCount := Value;
    Invalidate;
  end;
end;

boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#4 Speed

Speed
  • Members
  • 87 posts

Posted 23 June 2020 - 09:33 AM

 

Hi,

 

Please modify next procedure inside NxGridView6.pas file:

procedure TNxGridView6.SetFixedColCount(const Value: Integer);
begin
  if (Value <> FFixedColCount)
    and (Columns.Exist(Value) or (csLoading in ComponentState)) then // <--- changed line
  begin
    FFixedColCount := Value;
    Invalidate;
  end;
end;

 

That worked perfectly! 

 

Here's a screenshot of the fixed columns in action.

 

Thanks Boki.

 

= Steve

Attached Files



#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,893 posts
  • Gender:Male

Posted 23 June 2020 - 12:20 PM

Great!

 

Your app also looks quite nice!


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#6 Speed

Speed
  • Members
  • 87 posts

Posted 23 June 2020 - 12:23 PM

Thanks Boki.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users