PC Review


Reply
Thread Tools Rate Thread

datagrid -get the first -visible- row.

 
 
tony
Guest
Posts: n/a
 
      26th Aug 2009
hi,

I want to let the user scroll the datagrid with the keyboard of the device.

Each key press will move the selected row, X rows from the first row
visible.

How can i know what is the index for the first row visible ? or any other
idea how to do that..


Im using net compact 2.0 sp2.

Thanking in adavnce.


 
Reply With Quote
 
 
 
 
Michael Aebi
Guest
Posts: n/a
 
      30th Nov 2009
I do it like that:
FieldInfo m_firstVisibleRow = dg.GetType().GetField("m_irowVisibleFirst", BindingFlags.NonPublic | BindingFlags.GetField | BindingFlags.Instance);

if (m_firstVisibleRow != null)
{
int firstVisibleRow = (int)m_firstVisibleRow.GetValue(dg);
}

dg = dataGrid instance



tony wrote:

datagrid -get the first -visible- row.
26-Aug-09

hi,

I want to let the user scroll the datagrid with the keyboard of the device.

Each key press will move the selected row, X rows from the first row
visible.

How can i know what is the index for the first row visible ? or any other
idea how to do that..


Im using net compact 2.0 sp2.

Thanking in adavnce.

Previous Posts In This Thread:

On Wednesday, August 26, 2009 2:20 PM
tony wrote:

datagrid -get the first -visible- row.
hi,

I want to let the user scroll the datagrid with the keyboard of the device.

Each key press will move the selected row, X rows from the first row
visible.

How can i know what is the index for the first row visible ? or any other
idea how to do that..


Im using net compact 2.0 sp2.

Thanking in adavnce.


Submitted via EggHeadCafe - Software Developer Portal of Choice
The XML I-Ching: Tao of the DOM
http://www.eggheadcafe.com/tutorials...-tao-of-t.aspx
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top visible row in datagrid? Lennart Nielsen Microsoft VB .NET 2 7th Oct 2005 03:42 PM
Anyway to tell if a datagrid row is visible? Terry Olsen Microsoft VB .NET 1 24th Nov 2004 11:27 AM
last visible row of datagrid? Lore Leuneog Microsoft ADO .NET 1 28th Oct 2004 05:29 AM
Datagrid not visible Fabrizio Microsoft C# .NET 2 17th Nov 2003 03:02 AM
DataGrid - Try to keep column visible scorpion53061 Microsoft VB .NET 1 1st Oct 2003 12:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:02 AM.