Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the TableStyles collection
Message
 
À
20/08/2002 13:46:51
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00691497
Message ID:
00691586
Vues:
11
Sorry, I was thinking of the ASP.NET DataGrid. Are you sure you are binding the DataGrid to the same data source using the SetDataBinding method? Are you creating a New instance of the DataGrid in code prior to displaying it? If so, then you could be seeing that one instead of the one you built with the designer.

>I am unable to find the AutoGenerateColumns property of the DataGrid. It is not in my property sheet or the collection dialogs or in intellisense.
>
>How can I find this property?
>
>Thanks,
>
>Jerryt
>
>
>
>>Make sure the DataGrid's AutoGenerateColumns property is set to False.
>>
>>>I am using C# to query a VFP table.
>>>
>>>I have a form with a DataGrid. The Query works and the data is displayed in the grid.
>>>
>>>The problem I am having is that I can't set the TableStyles collection properly.
>>>
>>>Here's what I do:
>>>-Click on the TableStyles ...
>>>-Add a name MyGrid
>>> -MappingName = MyDataSetObject
>>>-Click on the GridColumnStyles ...
>>>-Add 2 members named Company and Name
>>> -The MappingName for each are the table field names COMPANY and CONTACT
>>>
>>>However, when I run the form and query, the grid is filled with all the columns from the table instead of the 2 I selected.
>>>
>>>What I am missing?
>>>
>>>Thanks,
>>>
>>>Jerryt
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform