Hello,
Is it possible to change a datagrid Header and Footer text in code behind
dynamically?
Thanks,
Jim. 7 3271
Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
= ListItemType.Header. From there I'd use findcontrol to get the controls you
want to modify.
Bill
"JIM.H." wrote: Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
= ListItemType.Header. From there I'd use findcontrol to get the controls you
want to modify.
Bill
"JIM.H." wrote: Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
I am quite new in this issue, can you give me example or an web page I can
check?
"Bill Borg" wrote: Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType = ListItemType.Header. From there I'd use findcontrol to get the controls you want to modify.
Bill
"JIM.H." wrote:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
I am quite new in this issue, can you give me example or an web page I can
check?
"Bill Borg" wrote: Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType = ListItemType.Header. From there I'd use findcontrol to get the controls you want to modify.
Bill
"JIM.H." wrote:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
Jim, some good articles are here: http://dotnetjunkies.com/tutorial/b8...9f4c739bc.dcik
(Peter van Ooijen)
and here: http://aspnet.4guysfromrolla.com/articles/040502-1.aspx (Scott Mitchell)
After you understand the basics, the rest of what you do where depends on a
few things. Come back with a few specifics--for one, are these template
columns, and for two, do you know what you want to change the header/footer
to *before* you load the data in the grid or not till *after*?
Bill
"JIM.H." wrote: I am quite new in this issue, can you give me example or an web page I can check?
"Bill Borg" wrote:
Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType = ListItemType.Header. From there I'd use findcontrol to get the controls you want to modify.
Bill
"JIM.H." wrote:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
Jim, some good articles are here: http://dotnetjunkies.com/tutorial/b8...9f4c739bc.dcik
(Peter van Ooijen)
and here: http://aspnet.4guysfromrolla.com/articles/040502-1.aspx (Scott Mitchell)
After you understand the basics, the rest of what you do where depends on a
few things. Come back with a few specifics--for one, are these template
columns, and for two, do you know what you want to change the header/footer
to *before* you load the data in the grid or not till *after*?
Bill
"JIM.H." wrote: I am quite new in this issue, can you give me example or an web page I can check?
"Bill Borg" wrote:
Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType = ListItemType.Header. From there I'd use findcontrol to get the controls you want to modify.
Bill
"JIM.H." wrote:
Hello, Is it possible to change a datagrid Header and Footer text in code behind dynamically? Thanks, Jim.
Thanks Bill for the reply.
My data grid works fine and I am doing edit/insert/delete kind of
things, that is way I am looking an easiest way to reach the footer of
a column and set a text there.
So I am looking something like
DataGrid1.Footer[ColumnName].Text="myText", is this possible? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Nicole |
last post by:
I am creating template columns programmatically. I have read the msdn
article on this and I'm so close. Article:...
|
by: Alexandre Soares |
last post by:
Is it possible to access the footer item in the render method of a datagrid?
So far, I can only find the FooterText of each column using the columns
collection, but that doesn't allow me to find...
|
by: Mau |
last post by:
I have a question:
I have a datagrid with paging (4 elements for page), header and footer
I set a fixed height: 600px
So the situation is (in a page with 5 elements)
6 rows (header + 4...
|
by: tshad |
last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is
filled?
I have a bunch of DataGrids that get displayed nested inside a DataList.
The datagrid looks like:
...
|
by: Olav Tollefsen |
last post by:
Is it possible to create a DataGrid footer to span multiple columns?
Olav
|
by: Ryan Lafferty |
last post by:
Hi,
I have a DataGrid control with a checkbox template column, and want to
make the checkbox "disappear" when the 3rd column of the DataGrid
contains the string "number". Is what I am trying to...
|
by: .Net Sports |
last post by:
the below itemdatabound function works , displays all the grand totals
in the footer control of the datagrid:
private void dglvboard_ItemDataBound(object sender,...
|
by: stephen |
last post by:
Hi,
I have a datagrid that has numerous records, so I put it in <div></divwith
a horizontal and vertical scroll bar, when I scroll the header and footer
disappear (becoz of scrolling) and its hard...
|
by: GaryDean |
last post by:
I am writing a method in a component that gets passed a 1.1 Datagrid. The
datagrid's columns were created at run time meaning it has no columns
collection.
How can I access Header and Footer...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |