Solved

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

Posted on 2004-10-03
6
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 34

Expert Comment

by:flavo
ID: 12213337
0
 
LVL 70

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

717 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