Hi,
>I know that there is something stupid here, but I am pulling my hair out
> trying to find it, Please help!!. I have a Form that, with various Tab
[quoted text clipped - 29 lines]
> End With
> Me.DataGrid1.CaptionVisible = False
The only reason i can think of why a DataGridTableStyle doesn't work is
because an incorrect MappingName is used.
> The one that won't work:
>
> Me.DataGrid2.DataSource = dsBtarget
> Me.DataGrid2.DataMember = "Btargets"
Here the tablename isn't really case-sensitive.
> Dim ts2 As New DataGridTableStyle
> ts2.MappingName = "Btargets"
Here the tablename *is* case-sensitive.
So i would check the exact tablename, eg. print it out before setting the
MappingName:
Console.WriteLine( dsBtarget.Tables("Btargets").TableName )
HTH,
Greetings
> With ts2.GridColumnStyles
> ts2.GridColumnStyles.Add(New DataGridTextBoxColumn)
[quoted text clipped - 12 lines]
> Thanks,
> Craig
craig - 26 Sep 2006 15:33 GMT
AARrrrrgghhhhh!!
I can't believe it was that simple! You hit it on the head! The table name
was "BTargets" not "Btargets"
Thanks a bunch!
Craig
>Hi,
>
[quoted text clipped - 32 lines]
>> Thanks,
>> Craig