fixed rows on datagrid

jpreyes

New member
Joined
Feb 23, 2004
Messages
3
Location
Jersey City
hi everyone im kinda new to vb.net so please be patient. anyway, i wanted my datagrid to always have 5 rows on it. can anyone pls point me in the right direction? thanks in advance.
 
Are the columns going to hold data from a data source, or do
you want to define your own columns?
 
Oh, 5 rows... I thought you meant columns.

If thats the case, then declare a new DataSet that has the
same columns as your data, and then add five blank rows
to it. Then set the DataSource property of the grid to the DataSet
and DataBind() the grid.
 
Back
Top