Winforms Datagrid
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, I am using datagrid in Winforms. How can i set the autogenerate columns =false I just want only those columns to show up whihc i have added no other columns apart from that. Thanks.
Deepak Surana
Hi, I think you don't have any such property "autogenerate columns" in datagrid for winforms. Just select the fields you require to display in your database query. Or else you can set the "Visible" property equal to 'False' for particular column in the datagrid which you dont want to display.