Solved

how to hide a column in the datagrid --- for windows application not asp.net

Posted on 2004-10-03
6
181 Views
Last Modified: 2010-04-23
Hi, to use the datagrid update method I had to show the primary key field in the datagrid. But I don't want user to see this field. How can i hide this field? It is a win app. not asp.net

thanks.
0
Comment
Question by:kate_y
6 Comments
 
LVL 34

Expert Comment

by:flavo
ID: 12213337
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 12213342
0
 
LVL 18

Expert Comment

by:tusharashah
ID: 12213349
Just befor you bind your DataGrid use put this code:

-------------------------------------------------------

Datagrid1.Column[n].Visible = false; // Where 'n' is your Column number for the primary key column.
-------------------------------------------------------

-tushar
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 18

Accepted Solution

by:
tusharashah earned 500 total points
ID: 12213366
ahh.. for WinForm...

Check out this article from kbalertz:

http://www.kbalertz.com/kb_317951.aspx

-tushar
0
 

Author Comment

by:kate_y
ID: 12213444
thank you guys. I got it.
0
 
LVL 18

Expert Comment

by:tusharashah
ID: 12213502
Nice to have you going.

Thanks for A :-)

-tushar
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now