|
-
September 17th, 2008, 01:22 AM
#2
Re: Changing HeaderText of datagrid programatically
You can do so in the following way:
gv_AddFiles.DataSource = dt;
gv_AddFiles.Columns[0].HeaderText = "Remaining files";
gv_AddFiles.DataBind();
Here gv_AddFiles is the id of a datagrid and dt is the datatable to which the datagrid is going to be bound to.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|