RE: How to disable the resize of DataGrid column/row

T

Tiki Wan

1) Data Grid basically is a table. You can use style sheet on the data grid
to control its column size
2) Write something like "dg.Columns[0].ItemStyle.Width"
3) Right click on the data Grid --> Properties builder --> Columns -> Add
several column -->Back to Format --> Columns --> You should be able to
control the width of the column, and the height of the column will be
depended on the font size and the data.

Hope this help.

-- Tiki , C# Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 

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