HighTechTalks DotNet Forums  

DataGridTableStyle Mapping name when using BindingSource

Dotnet Framework microsoft.public.dotnet.framework


Discuss DataGridTableStyle Mapping name when using BindingSource in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Eric Falsken
 
Posts: n/a

Default DataGridTableStyle Mapping name when using BindingSource - 04-02-2006 , 06:08 PM






I can't figure out what the MappingName property should be set to when the
DataGrid is bound to a BindingSource. The bindingSource can be bound to a
Foo[] or a List<Foo>. But neither of those settings cause the grid to
display the correct TableStyle. Is this feature broken in the compact
framework? What's the magic word?


DataGrid.DataSource = BindingSource
BindingSource.DataSource = List<Foo>

DataGridTableStyle.MappingName = ??? // WHAT GOES HERE?
DataGrid.TableStyles.Add(DataGridTableStyle)

--
Eric Falsken
Technical Evangelist: db4o
web: www.db4o.com

Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default RE: DataGridTableStyle Mapping name when using BindingSource - 04-03-2006 , 08:54 AM






Hi Eric,

Thanks for your post!

For the current issue, the MappingName property is set as the name used to
map this table to a specific data source. So, as far as I know, you can set
the property to the name of the List<T> at the current stage. The following
MSDN document demonstrates the details about the property:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridtables
tyle.mappingname(VS.80).aspx

Hope this will be helpful. If you have any concerns or issues, please let
me know. It's my pleasure to be assistance.

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: DataGridTableStyle Mapping name when using Binding ... - 04-14-2006 , 11:09 AM



Hi

Did you get it to work ?

If so what is the solution.

I have the same problem .. I've tried everything

Thanks

Stephen
---
Posted via www.DotNetSlackers.com

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.