Remove specific datagrid tablestyle

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bob (Bob_at_discussions.microsoft.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 04:07:03 -0800

is it possible to remove just a specific tablestyle and keep anyothers that
may exist? I've got the folowing code:

Dim TS As New DataGridTableStyle
TS.MappingName = "ABQTG0UN"

.....

Datagrid1.TableStyles.Add(TS)

.....
If (Datagrid1.TableStyles.Contains("ABQTG0UN") = True) Then
Datagrid1.TableStyles.Remove(TS)

-------------------------
If tried both TS and "ABQTG0UN" as the argument in the .Remove, but neither
one works.