De que forma puedo ir a un row determinado de un Grod??
Existe alguna forma de hacer Focus e ir a un Row del Grid, si preciono una opcion determinanda???
Si alguien tiene un ejemplo les agradesco
Gracias
Como hacer focus en un row del Grid???
Moderator: Rathinagiri
Re: Como hacer focus en un row del Grid???
Me olvide de avisar uso: Harbour MiniGUI Extended Edition 24.06 (Standard)
-
Red2
- Posts: 281
- Joined: Sat May 18, 2019 2:11 pm
- DBs Used: Visual FoxPro, FoxPro
- Location: United States of America
Re: Como hacer focus en un row del Grid???
Hi,
This command is an example of setting the focus to a specific GRID control's row.
Is this at all what you were asking about?
This command is an example of setting the focus to a specific GRID control's row.
Code: Select all
SetProperty( "TheWindow", "My_GridControl", "Value", recno() )Re: Como hacer focus en un row del Grid???
If you want to set the column as well, use Red2`s code with recno(),column #
For column 3
For column 3
Code: Select all
SetProperty( "TheWindow", "My_GridControl", "Value", recno(),3 )
All The Best,
Franco
Canada
Franco
Canada
Re: Como hacer focus en un row del Grid???
Muchas Gracias.
Al final lo descubri y termine haciendolo asi:
@ X,Y GRID Grid_Ver_2 OF Panel_Ver WIDTH 470 HEIGHT pnH-148 ;
HEADERS xHead WIDTHS xWid JUSTIFY xJust FONT ;
'Comic Sans MS' SIZE 8 BOLD BACKCOLOR WHITE ;
IMAGE x_image MULTISELECT ITEMS {} VALUE {nRowVer};
DYNAMICBACKCOLOR {,{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})}, ;
{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})},;
{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})},};
ON CHANGE Limpiar_Ver_2();
ON DBLCLICK (nRowVer:=This.Value,Ver_Grid_2_Activar_3_ON())
Al final lo descubri y termine haciendolo asi:
@ X,Y GRID Grid_Ver_2 OF Panel_Ver WIDTH 470 HEIGHT pnH-148 ;
HEADERS xHead WIDTHS xWid JUSTIFY xJust FONT ;
'Comic Sans MS' SIZE 8 BOLD BACKCOLOR WHITE ;
IMAGE x_image MULTISELECT ITEMS {} VALUE {nRowVer};
DYNAMICBACKCOLOR {,{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})}, ;
{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})},;
{|x|IIF(EMPTY(x[3]),{249,255,207},{83,255,20})},};
ON CHANGE Limpiar_Ver_2();
ON DBLCLICK (nRowVer:=This.Value,Ver_Grid_2_Activar_3_ON())