Jump to content


Delphier

Member Since 27 May 2016
Offline Last Active Jul 05 2016 05:56 PM
-----

Topics I've Started

Filtering a boolean column

05 July 2016 - 03:56 PM

I can figure out how to filter a Boolean column. I'd like to be able to show:

 

 o all rows in the grid; or

 o only rows where the Boolean cell's value is false.

 

This is what I have tried:

 

var
  col: TNxTextColumn6;
begin
  col := TNxTextColumn6(ngMain.Columns[7]);
  col.Filter := false.ToString();
  col.FilterEnabled := true;
end;
 

 

Can you point me in the right direction, please?

 

Thank you


Easy NxToolBar6 questions ...

27 May 2016 - 02:04 PM

Good day.  I'm a new user of Next Components and am using Delphi 10.1 Berlin.

 

I have a few questions about the NxToolBar6 tool bar:

 

1 )  How do I remove buttons from a tool bar in code?

 

I have tried something like this:

 

var
  ii: integer;
  btn: TNxToolButton6;
begin
  while tb1.Buttons.Count > 0 do
    tb1.buttons.Items[0]. ???

 

 

end;

 

but what do I put where the ??? are?  Auto complete doesn't seem to come up with a sensible suggestion.

 

 

2 )  Is it possible to have the button text wrap over two or more lines?

 

I have tried insert a CRLF pair, but that didn't work.

 

3 ) It is possible to have the tool bar vertical with button one on top of the other?

 

Thanks

 

Edit:  I have just noticed that TNxToolButton6 doesn't have a tag property.  I have used tag over the years for many things.  Was the property not used for a reason?