Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you specify the columns in a grid?
Message
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00714135
Message ID:
00714170
Vues:
19
In the property sheet for the DataGrid, click on the TableStyles property. Then click on the "..." to bring up the DataGridTableStyle Collection Editor. From there you add new GridColumnStyles to your DataGrid and bind them to the DataTable columns.

>Hi Cathi,
>
>Its a WinForm. Not yet up to speed on all this web stuff.
>
>Thanks
>Roland
>=======================================================
>
>
>
>>Is this a WinForm or WebForm application?
>>
>>>Hi,
>>>
>>>I have a form that has a grid at the top and fields (lots) below the grid.
>>>
>>>The dataset has all the fields in the form and they show in the grid.
>>>
>>>I only want Id Number and Name to appear in the grid as columns from the dataset.
>>>
>>>How would this be accomplished?
>>>
>>>Thanks
>>>Roland
-----------------------------------------

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform