I would like to create feeling that grid has always at least 10 rows visible, even if the datasource contains only 3 data rows.
For that i need to able to add few fictional empty rows just to create filling effect.
If you are using a DataTable object as your datasource (for example getting something from a SQL database and setting it to a DataTable object) you could count the rows, and then add more blank rows manually before you set the datasource of the grid. So for example:
//get the data from the datasource and set it equal to a DataTable object (myTable for example)
Hello, I've got the same problem of Shimon, but I use a LinqDataSource. If it's possible I don't want to modify my dataSource. Can someone suggest me an idea?
best regard
0
Carl
Telerik team
answered on 12 Nov 2009, 03:48 PM
Hello archimede,
If you have your LINQ query return as a DataTable you can apply the same logic to your implementation as well. Since all of the updates are taken care of on the DataTable you will not have to commit to your actual database until you have reached the 10+ entries that you are looking for.