Solved

C# - Customize DataGridView or recommend a similar component

Posted on 2007-04-06
4
929 Views
Last Modified: 2008-01-09
Hi guys 'n gals,

Appart from a DataGridView, what is the best component for me to use to achieve the following:


[Title       ]  [Your name    ]
[Address] [52 here place]
[Gender  ] [Male               ]


Basically, I want to create a form, but I want it to look like a DataGridView without the left column and top row, which allows you to select multiple columns/rows. I also want to set it so you cannot change the value in all cells in a specified column.

I have looked at something called iGrid by 10tec, but would really prefer not having to purchase additional components, if possible...

So if somebody could recommend something to me, or tell me how to customize DataGridView to do what I am after, that would be great!


Cheers!
0
Comment
Question by:Cyber-Drugs
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:CBeach1980
ID: 18864726
You can use a DataGridView and just disable the functionality you don't want.  For example if you don't want the rowHeader then on the DataGridView set the RowHeadersVisible property to False.  If you want a column to not be editable then in the Columns collection of the DataGridView set the desired column to read-only.  If there are other specific things you don't want to be able to do let me know and I can explain how to disable them.
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 18864759
That's brilliant, cheers!

Is it possible to also disable and hide the column on the left which allows you to select an entire row?
0
 
LVL 4

Accepted Solution

by:
CBeach1980 earned 500 total points
ID: 18864855
Yes, that is the RowHeader.  DataGridView.RowHeadersVisible = False will make it go away (I personally hate the rowheader so I never have it visible).
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 18872082
That seems to do the trick perfectly, sorry for the late reply, I was stuck up in some other matters in regards to the Holidays...

Happy Easter, and thanks for the help!!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 53
Name space syntax error 12 56
Simple Injector with Web Service 4 38
localhost: This site can’t be reached  localhost refused to connect. 2 45
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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

17 Experts available now in Live!

Get 1:1 Help Now