DataGrid

G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

Hi!
How can set the Row(0) the FocusedRow?
The Select funtion only select a row, but I want Focus a Row.

--


Cumprimentos,
David de Passos
--------------------------------------------------------------
RCSOFT, Lda.
E-Mail: passos@rcsoft.pt
Móvel: +351 966931639
Telefone: +351 239708708
Fax: +351 239708701
Tel. Directo: +351 239708705 ext. 401
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

I have not used data grids myself but found this on MSDN.

There is a CurrentCell property in DataGrid that allows you to set the focus
to a cell. Try setting the current cell to the one in the row that you want
to have focus.
Eg: myGrid.CurrentCell = new DataGridCell (row_number, column_number);

You might want to see the MSDN link @
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclasscurrentcelltopic.asp

Thanks,
Devi J V [MSFT]
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"David de Passos" <passos@rcsoft.pt> wrote in message
news:ei$ixUDGFHA.1392@tk2msftngp13.phx.gbl...
> Hi!
> How can set the Row(0) the FocusedRow?
> The Select funtion only select a row, but I want Focus a Row.
>
> --
>
>
> Cumprimentos,
> David de Passos
> --------------------------------------------------------------
> RCSOFT, Lda.
> E-Mail: passos@rcsoft.pt
> Móvel: +351 966931639
> Telefone: +351 239708708
> Fax: +351 239708701
> Tel. Directo: +351 239708705 ext. 401
>
 
G

Guest

Guest
Archived from groups: microsoft.public.pocketpc (More info?)

thanks it's something like that :)

"Devi JV [MSFT]" <devijv@online.microsoft.com> wrote in message
news:e053%23%23WGFHA.3728@TK2MSFTNGP14.phx.gbl...
>I have not used data grids myself but found this on MSDN.
>
> There is a CurrentCell property in DataGrid that allows you to set the
> focus to a cell. Try setting the current cell to the one in the row that
> you want to have focus.
> Eg: myGrid.CurrentCell = new DataGridCell (row_number, column_number);
>
> You might want to see the MSDN link @
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridclasscurrentcelltopic.asp
>
> Thanks,
> Devi J V [MSFT]
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "David de Passos" <passos@rcsoft.pt> wrote in message
> news:ei$ixUDGFHA.1392@tk2msftngp13.phx.gbl...
>> Hi!
>> How can set the Row(0) the FocusedRow?
>> The Select funtion only select a row, but I want Focus a Row.
>>
>> --
>>
>>
>> Cumprimentos,
>> David de Passos
>> --------------------------------------------------------------
>> RCSOFT, Lda.
>> E-Mail: passos@rcsoft.pt
>> Móvel: +351 966931639
>> Telefone: +351 239708708
>> Fax: +351 239708701
>> Tel. Directo: +351 239708705 ext. 401
>>
>
>
 

ASK THE COMMUNITY