Hi i am looking for having 10 records in the grid-view by default
so if the grid-view has 3 rows then there are 7 empty rows to add,
if grid-view has 4 rows then there are 6 empty rows, etc..
also if grid-view has 10 rows there's no empty rows to add
QueryClass q = new QueryClass();
grid.DataSource = q.getdata();
grid.DataBind();
Method
public DataTable getdata()
{
string query = string.Format("SELECT TOP(10) * FROM Store");
return Search(query);
}