Solved

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

Posted on 2004-10-03
6
203 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 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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