Determine GridView's total rows in Row DataBound event?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Craig Buchanan

    Determine GridView's total rows in Row DataBound event?

    Is there a way to determine the total number of records that will be bound to a
    GridView during the row's dataBound event? considering all of the types of data
    objects that can be bound to the gridView, there doesn't seem to be a consistent
    way to test the data source.

    Insights appreciated.

    Craig Buchanan
  • Reggie

    #2
    Re: Determine GridView's total rows in Row DataBound event?

    Craig, Maybe something like:

    dvwData = dstData.Tables( strView).Defaul tView
    dgrdData.DataSo urce = dvwData
    intRowCount = dstData.Tables( 0).Rows.Count

    Hope it helps

    Reggie

    "Craig Buchanan" <name@company.c omwrote in message
    news:ucIP42lIJH A.3816@TK2MSFTN GP04.phx.gbl...
    Is there a way to determine the total number of records that will be bound
    to a GridView during the row's dataBound event? considering all of the
    types of data objects that can be bound to the gridView, there doesn't
    seem to be a consistent way to test the data source.
    >
    Insights appreciated.
    >
    Craig Buchanan

    Comment

    Working...