Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
= ListItemType.He ader. From there I'd use findcontrol to get the controls you
want to modify.
Bill
"JIM.H." wrote:
[color=blue]
> Hello,
> Is it possible to change a datagrid Header and Footer text in code behind
> dynamically?
> Thanks,
> Jim.
>[/color]
Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
= ListItemType.He ader. From there I'd use findcontrol to get the controls you
want to modify.
Bill
"JIM.H." wrote:
[color=blue]
> Hello,
> Is it possible to change a datagrid Header and Footer text in code behind
> dynamically?
> Thanks,
> Jim.
>[/color]
I am quite new in this issue, can you give me example or an web page I can
check?
"Bill Borg" wrote:
[color=blue]
> Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
> = ListItemType.He ader. From there I'd use findcontrol to get the controls you
> want to modify.
>
> Bill
>
> "JIM.H." wrote:
>[color=green]
> > Hello,
> > Is it possible to change a datagrid Header and Footer text in code behind
> > dynamically?
> > Thanks,
> > Jim.
> >[/color][/color]
I am quite new in this issue, can you give me example or an web page I can
check?
"Bill Borg" wrote:
[color=blue]
> Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
> = ListItemType.He ader. From there I'd use findcontrol to get the controls you
> want to modify.
>
> Bill
>
> "JIM.H." wrote:
>[color=green]
> > Hello,
> > Is it possible to change a datagrid Header and Footer text in code behind
> > dynamically?
> > Thanks,
> > Jim.
> >[/color][/color]
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:
[color=blue]
> I am quite new in this issue, can you give me example or an web page I can
> check?
>
> "Bill Borg" wrote:
>[color=green]
> > Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
> > = ListItemType.He ader. From there I'd use findcontrol to get the controls you
> > want to modify.
> >
> > Bill
> >
> > "JIM.H." wrote:
> >[color=darkred]
> > > Hello,
> > > Is it possible to change a datagrid Header and Footer text in code behind
> > > dynamically?
> > > Thanks,
> > > Jim.
> > >[/color][/color][/color]
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:
[color=blue]
> I am quite new in this issue, can you give me example or an web page I can
> check?
>
> "Bill Borg" wrote:
>[color=green]
> > Jim, at ItemDataBound you can get at header and footer, e.g. e.Item.ItemType
> > = ListItemType.He ader. From there I'd use findcontrol to get the controls you
> > want to modify.
> >
> > Bill
> >
> > "JIM.H." wrote:
> >[color=darkred]
> > > Hello,
> > > Is it possible to change a datagrid Header and Footer text in code behind
> > > dynamically?
> > > Thanks,
> > > Jim.
> > >[/color][/color][/color]
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.Foote r[ColumnName].Text="myText", is this possible?
Comment