datagrid -get the first -visible- row.

T

tony

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.
 
M

Michael Aebi

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:

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/tutorial...054-6e21dad2bb96/the-xml-iching-tao-of-t.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top