Jump to content


Photo

Little bug ?


  • Please log in to reply
4 replies to this topic

#1 ObiWan

ObiWan
  • Members
  • 46 posts

Posted 15 February 2016 - 05:40 PM

Hi

testing version 6 I found a strange thing..

In a nextgrid if you set the first on n column as not visible then 

you cannot set selectedrow till you dont click on the grid....

 

 

    nxt_files    : TNextGrid6;
    nxr            : TNxReportGridView6;
    nxtxtclmn1: TNxTextColumn6;  // this is set as visible=False
    nxtxtclmn2: TNxTextColumn6;
    nxtxtclmn3: TNxTextColumn6;
 
 
procedure TForm1.nxbu_1Click(Sender: TObject);
begin
  nxt_files.ClearRows;
  nxt_files.AddRow(5);
  nxt_files.SelectedRow:=3
end;
 
Click on the button but I cannot see the  selectoin, I click on one of the
row, click again and I see the selection. 
 
 
Something wrong in what I do ?
 
Cu
 
 
 


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 15 February 2016 - 06:16 PM

Hi,

 

Try to set HideSelection property to False (default True).


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 ObiWan

ObiWan
  • Members
  • 46 posts

Posted 19 February 2016 - 05:46 PM

Hi

it is set to False



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 February 2016 - 06:21 PM

Hi,

Try also to set SelectedCol to 1 (since 0 is invisible). This property is -1 by default.
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.

#5 ObiWan

ObiWan
  • Members
  • 46 posts

Posted 22 February 2016 - 04:19 PM

Wow  :)

 

Got it :)

 

Never used in version 5 ...

 

Thanks a lot






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users