Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I make my datagridview rows look like spss datagrid.
In spss if you dont enter numbers in cells the row show inactive.

Example:
https://psychwire.files.wordpress.com/2011/07/spss_base.png

From 1 to 10 rows are active from 11 to ... are not active

What I have tried:

Any suggestions, is it possible to do that with datagridviee
Posted
Updated 8-Jul-20 9:51am
Comments
D J Code 10-Jul-20 4:25am    
I think that the table shown in the image is not a datagridview. Rather, it is made of textboxes.

1 solution

Probably the best would be to make all rows inactive. Then as you add data to them you change the state of the ones that get filled in. But in general a DataGridView does not contain empty rows.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900