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?

Re: SqlCeResultSet and DataGrid and TableStyles by Richard

Richard
Fri Nov 23 14:09:42 PST 2007

Not that I know of. Think this the only route.

--
Richard Jones
MVP - Device Application Development
www.binaryrefinery.com

"Adam" <spamcut@wp.pl> wrote in message
news:qsq90mja9zhf$.5m0k7mzutrvb.dlg@40tude.net...
> 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?


Re: SqlCeResultSet and DataGrid and TableStyles by Adam

Adam
Fri Nov 23 16:48:01 PST 2007

Dnia Fri, 23 Nov 2007 22:09:42 -0000, Richard Jones (MVP) napisa³(a):

> Not that I know of. Think this the only route.

Thanks.