SqlCeResultSet and DataGrid and TableStyles

  • Thread starter Thread starter Adam
  • Start date Start date
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?
 
Back
Top