RE: DataGrid header and <TH>
Posted: 06-26-2003, 12:02 AM
You might use the HeaderStyle of the DataGrid which will create Th on the
client side. You can also attach style attribute to this
so you can format it the way you want. For more information refers to the
following documents:
DataGrid.HeaderStyle Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebuiwebcontrolsdatagridclassheaderstyl etopic.asp
DataGrid.ShowHeader Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebuiwebcontrolsdatagridclassshowheader topic.asp
Samples:
http://msdn.microsoft.com/library/de...us/cpqstart/ht
ml/cpsmpnetsamples-aspnetdataaccess.asp
Please let me know if you have any more questions on this.
Thanks,
Bassel Tabbara
Microsoft, ASP.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| From: "Vaclav Jedlicka" <vjedlicka@iol.cz>
| Subject: DataGrid header and <TH>
| Date: Wed, 25 Jun 2003 12:11:40 +0200
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <OKQ3cJwODHA.1364@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 195.47.25.99
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154680
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hello
|
| I have a DataGrid control an a page and I need the first row to have <TH>
| fields, not <TD>s, how can I achieve that?
| I need it because of a CSS which has attributes for <TH>s specified.
|
| Thanks in advance!
|
| Vaclav
|
|
|



Linear Mode


Posts: n/a