datagrid -get the first -visible- row.

  • Thread starter Thread starter tony
  • Start date Start date
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.
 
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
 
Back
Top