SqlCeResultSet and DataGrid and TableStyles

A

Adam

Hello,

is this possible to change TableStyles attached to DataGrid when datasource
is SqlCeResultSet?
Now I design (with designer) two differents TableStyles.
SqlCeResultSet don't have MappingName so i change TableStyles like this:

dataGrid1.TableStyles.Clear();
dataGrid1.TableStyles.Add(firstdatagridtablestyle);

and change to second

dataGrid1.TableStyles.Clear();
dataGrid1.TableStyles.Add(seconddatagridtablestyle);

Is there any simplier way to achieve this?
 

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