AD
Administrator
Syncfusion Team
July 18, 2005 08:51 AM UTC
You cannot set a RowCount in a GridDataBoundGrid. The number of rows in the grid is determined by the number of rows in the datasource. So, if you add a row to your datasource, it should just show up in the grid.
In a GridDataBoundGrid, the grid just displays what is in the datasource. You can add unboundColumns in a straight-forward manner by adding GridBoundColumns with a MappingName that is not in the datasource, but adding unbound rows is harder.
Now if you want to add an unbound row, you can. But you do have to use grid.Model.QueryRowCount to provide the rowcount, and you do have to use grid.Model.QueryCellInfo to provide the values.