DataGrid and Template Columns Refreshing again
- From: kevin_giles78@xxxxxxxxxxx
- Date: 19 Jul 2005 02:22:06 -0700
hello everyone.
I need a simple explanation of how to do something with a data grid. I
have a grid which contains a template column. The template column has a
PlaceHolder and this contains two buttons.
The visibility of the buttons is set according to the content of the
ROW in the grid. Either one or the other button is shown.
This works through the initial DataBind fine.
Now I wan to click a button and have the following take place: -
The data in list from which the grid was originally populated is
altered.
The grid is refreshed in some way to cause the databind to be called
for the rows which should allow the visibility of the buttons in the
placeholder of the template column to be set according to the NEW
values of the rows.
In my source I have a new class
public class renderActionButtons : ITemplate
which takes care of the rendering of the buttons.
The problem is that I cannot work out how to make the grid (the owing
container of the datagrid item which contains the buttons) refresh
itself.
If this is not clear, I can post (lots) more and I am willing to send
the entire current source to anyoine who has the time, or impetus to
look at this.
I really find it difficult to get my head around who can do what to
whom in this environment, especially when things are create
dynamically. Has anyone any suggestions for "beginners guides"?
TIA,
Kevin
P.S. I would like to thank Ken for his previous help but I am still
trying to get things simplified for me to understand.
.
- Follow-Ups:
- Re: DataGrid and Template Columns Refreshing again
- From: kevin_giles78
- Re: DataGrid and Template Columns Refreshing again
- Prev by Date: Programmatically download/upload the list template (.stp)
- Next by Date: Re: Customizing Search
- Previous by thread: Programmatically download/upload the list template (.stp)
- Next by thread: Re: DataGrid and Template Columns Refreshing again
- Index(es):
Loading