Jump to content


Photo

How to looping all nxcolumn in nxdbgrid


  • Please log in to reply
1 reply to this topic

#1 Bagong

Bagong
  • Members
  • 20 posts

Posted 10 May 2019 - 12:21 AM

Hi boki,

i have question..

How i to looping all nxcolumn in nxdbgrid?

So i no need to mention one by one (nxcolumn) to assign property

 

"for i := 0 to nxDBGrid.ColumnCount-1 do

  begin
  if nxDBGrid.Column[i] is nxdbColumn then
    begin
    nxdbColumn(DBGrid.Column[i])        .Visible            := False;
    end;
  end;
"


#2 Bagong

Bagong
  • Members
  • 20 posts

Posted 10 May 2019 - 12:35 AM

solved

for i := 0 to Columns.Count-1 do
  begin
    Columns[i]        .Sorted            := False;
  end;





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users