Click here to Skip to main content
15,748,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Note it is windows application.

In ouput datagridview as follows;


SNO Fac_Code Course_Code
1 SJ REO
2 VB PH1
3 GS PH2
4 MJ TCF
5 RK CTF
6 VR MFA
7 CM EFA


i want to visible false the entire ROW SNO in datagridview. how can i do using c sharp.


I want the Output as follows in datagridview.

Fac_Code Course_Code
SJ REO
VB PH1
GS PH2
MJ TCF
RK CTF
VR MFA
CM EFA


how can i get the above output in datagridview.

Please help me.

Note it is windows application.

Thanks & Regards,
Narasiman P.
Posted

1 solution

Hi,

What is the issue or difficulty in hiding the column. simply, you can use like below.
C#
datagridview1.Columns[0].visible = false;

or
C#
datagridview1.Columns["SNO"].visible = false;

refer this[^]

hope it helps
 
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