Link to home
Start Free TrialLog in
Avatar of Cyber-Drugs
Cyber-DrugsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

C# - Customize DataGridView or recommend a similar component

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!
Avatar of CBeach1980
CBeach1980

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.
Avatar of Cyber-Drugs

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of CBeach1980
CBeach1980

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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!!