How to get first & Last visible Row in VB?

Discussion in 'ASP .Net Datagrid Control' started by Thunder, Jul 23, 2003.

  1. Thunder

    Thunder Guest

    In C#,I know the way to get:
    void EnsureRowVisible(DataGrid grd, int Row)
    {
    int FirstVisibleRow = (int)grd.GetType().GetField("m_irowVisibleFirst",
    BindingFlags.NonPublic|BindingFlags.GetField
    |BindingFlags.Instance).GetValue(grid);
    int LastVisibleRow = (int)grd.GetType().GetField("m_irowVisibleLast",
    BindingFlags.NonPublic|BindingFlags.GetField|BindingFlags.Instance).GetValue
    (grid);
    //grid is the visible datagrid control
    }

    But,how it be done in the Vb.Net ?
     
    Thunder, Jul 23, 2003
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul
    Replies:
    3
    Views:
    517
    Alexey Smirnov
    Jun 10, 2008
  2. Paul
    Replies:
    1
    Views:
    2,861
    Hermit Dave
    Jul 11, 2008
  3. Hussein B
    Replies:
    12
    Views:
    2,691
    M.-A. Lemburg
    Jan 21, 2009
  4. D
    Replies:
    0
    Views:
    495
  5. Walt Zydhek

    GridView Totals Row as First Row

    Walt Zydhek, Jan 15, 2007, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    1,154
    Alvin Bruney [MVP]
    Jan 17, 2007
  6. Selected Row Only GridView Row Visible?

    , Oct 17, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    446
  7. Stefan Mueller
    Replies:
    4
    Views:
    194
    Stefan Mueller
    Nov 3, 2005
  8. sherifffruitfly
    Replies:
    0
    Views:
    245
    sherifffruitfly
    Apr 25, 2007
Loading...