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