?
Solved

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

Posted on 2004-10-03
6
Medium Priority
?
222 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
Technology Partners: 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 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