Setting the grid style with dataset created in xml designer

N

news.microsoft.com

Hi,

If I create a dataset and add its tables in the xml designer, how can I
control the column styles? I would like the grid to use DataGridColumnStyle.


Thanks,
Ronen
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

DataSets can not and should not govern how they are presented to the user.
You should customize the DataGrid's properties to achieve the desired look
and feel. In particular, as far as I remember, the grid has the GridLines
property which enables or disables display of the grid lines. You can also
try the DataGridTableStyle class to fine tune the appearance of a particular
table in the DataSet.
 

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