Hi Carl,
I think may be you can try another way of handling this:
You can inherit from the datagrid control, override its Paint method.
Then you can format the int value to the related enum string.
But I think handle dataset is simpler.
Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Carl" <ca**@cb-cinc.om>
| Sender: "Carl" <ca**@cb-cinc.om>
| References: <14****************************@phx.gbl>
<Or**************@cpmsftngxa06.phx.gbl>
| Subject: RE: DataGrid and tableStyle
| Date: Tue, 23 Sep 2003 08:49:49 -0700
| Lines: 16
| Message-ID: <c1****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOB6lJHDRwtNcmrS5aWvSwtdkn6rw==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:186772
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I was expecting to avoid looping trough the dataset to
| perform this change, sometime the dataset could be huge.
|
| I was expected kind of event code when display in the
| grid.
|
| I was thinking to use the datasourcechange event of the
| grid to perform the change in the grid.
|
| But I think changing the dataset itself will be easier,
| I think this is the only way !
|
| So I will do it.
|
| Carl,
|
|