Re: .Net 2.0 C# GridView question
Tech-Archive recommends: Fix windows errors by optimizing your registry
Jason,
You can change the header text of the GridView column by:
GridView1.Columns[0].HeaderText = "ID";
Regards,
Prashanth.
On May 16, 1:28 pm, "Jason Huang" <JasonHuang8...@xxxxxxxxxxx> wrote:
Hi,
Would someone tell me how to manipulate the Header of a GridView?
My DataSet is like this:
_id _name
1 John
2 Mary
But I want the GridView in my webform to show up like this:
ID Name
1 John
2 Mary
Thanks for help.
Jason
.
Relevant Pages
- RE: Retrieve GridView column header text on sort
... As for the retrieving and setting a certain BoundField's Header text in ... GridView, based on my research, since the GridView's Columns collection ... Retrieve GridView column header text on sort ... (microsoft.public.dotnet.framework.aspnet.webcontrols) - How to Reference Gridview child controls
... I have a gridview that I want to basically convert to behavior like Excel ... I have created a dropdown list and put it into the header of the ... Dim ddlVendor As DropDownList ... Exception Details: System.NullReferenceException: Object reference not set ... (microsoft.public.dotnet.framework.aspnet.webcontrols) - Re: gridview headers
... tenho um dataset que tem um numero de colunas variavel que é ... desse gridview quando as colunas possuirem o mesmo nome. ... 'Compare' page does this dynamic header manipulation)) ... (microsoft.public.dotnet.framework.aspnet) - Re: GRIDVIEW
... To customize the appearance, e.g. the header of columns, we can use the ... GridView's wizard. ... Click on the little angle on the right-upper side of GridView. ... input our header (e.g. ... (microsoft.public.dotnet.framework) - Button Inside Header template of Gridview--gives error on click
... behaviour true. ... "Invalid postback or callback argument. ... How do I make this button persent in the header of the gridview work ... (microsoft.public.dotnet.framework.aspnet) |
|