I have a simple gridview that is using sqldatasource, but I am trying to display the record count. I have read that by using you can display the record numbers, but this is not work the label is: Label1.Text = GridView1.Rows.Count.ToString. Please advise. I am using asp.net. I have also a search button and would also like to return the number of records return from the search button. Look forward to receiving a solution soon.