Windows DataGrid Question

J

Jim Heavey

I am using a datagrid to present data in a WINDOWS application.
If the user click on a cell within the grid, the datagrid allows the user
to edit the value. I want to allow editing on certain columns, but
disallow it on others. How do I do this? I am using a DataGridTableSyle
to identify the columns that I want in the grid, but I do not see a
property to set if I do not want the column to be editable.

If I want one of the columns to be a dropdown box that the user selects
from rather then being a textbox, how can I change this behavior.

Thanks in advance for your assistance!!!!
 
E

Eric Cadwell

I am using a DataGridTableSyle to identify the columns that I want in the
grid, but I do not see a
property to set if I do not want the column to be editable.


DataGridColumnStyle.ReadOnly.

HTH;
Eric Cadwell
http://www.origincontrols.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top