Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataGrid Basics tying to XML
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00793986
Message ID:
00794249
Vues:
12
Take a look at this site: http://www.syncfusion.com/FAQ/WinForms/ This guy has a lot of documentation on Windows forms including Grids and TableStyles.

I also thought it was redundant having to assign the table in the grid and in the table style. Later on I realized why you need to do this, but it's been so long that I have forgotten already. Hope that site that I mentioned gives you the answer.

>Hector
>Thanks for the response.
>I'd thought about that previously and it seemed redundant to assigning the DataSource to the datagrid.
>
>So I tried it anyway with the DataSource assignment. Added the TableStyle.MappingName, but I get the same result. I also added assigning a name to ds.Tables[0].Namespace, but same result. I removed the DataSource assignment and get no data in the grid.
>
>DataGridTableStyle ts1 = new DataGridTableStyle();
>// New line added
>ts1.MappingName = "v_ICPartXML";
>
>Jon
>
>>I think you are missing the MappingName in the TableStyle. You need to indicate the TableStyle the "table" that is bound to.
>>Try setting this property just after creating the TableStyle.
>>
>>
>>' VB.NET sample code
>>Grid.TableStyles.Clear()
>>Dim TableStyle As New System.Windows.Forms.DataGridTableStyle()
>>TableStyle.MappingName = TableName
>>
>>
>>
Hector Correa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform