Basic DataGrid Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ian Semmel

    #1

    Basic DataGrid Question

    Am I correct in assuming that grid.Controls.C ount is 1 less than the count of
    the number of rows ?

    Is there some other property which gives the actual count ?
  • Ward Bekker

    #2
    Re: Basic DataGrid Question

    Hi Ian,

    You could count the amount of items in the datasource:

    IList list = DataGrid1.Datas ource as IList;

    int rowCount = list.Count;


    --
    Ward Bekker
    "Asp.Net Discussions for the Professional Developer"


    "Free .Net 2.0 C# to/from VB.Net Code Converter"

    Comment

    Working...