larris
Member
- Joined
- Mar 13, 2006
- Messages
- 23
- Programming Experience
- 1-3
hi to all!!
I have a datagridview which is populated from a database based on a user imput on a textbox.what i want is to have a fixed 10 row datagrid.I populate the datagrid in the form load event handler with 10 blank rows.the code is this :
Datagridview1.Rows.Add(10).
but when the query result from the database is less than 10 rows (say 5 rows) the datagrid shows only the 5 rows and a black screen bellow row 5.
how can i populate the rest 5 row with blank rows so the user wont se a blank screen?
I have a datagridview which is populated from a database based on a user imput on a textbox.what i want is to have a fixed 10 row datagrid.I populate the datagrid in the form load event handler with 10 blank rows.the code is this :
Datagridview1.Rows.Add(10).
but when the query result from the database is less than 10 rows (say 5 rows) the datagrid shows only the 5 rows and a black screen bellow row 5.
how can i populate the rest 5 row with blank rows so the user wont se a blank screen?