I have a typical DataGrid with a TemplateColumn. The template column contains lots of "stuff": images, linkbuttons, labels, etc.
A DataSet is bound to the DataGrid.
I'm using the <%#DataBinder.Eval(Container,"sqlField"
%> syntax to bind values here and there.
In my ItemDataBound event handler, I'm looking at values in the DataSet.
I want to change the value of a label within the DataGrid TemplateColumn based on a value in the DataSet.
The event is firing right, I've got down to an IF statement for the DataSet value, all I need to do is add code to say "now change such and such". I don't know how to refer to controls in the column/cell/whatever.
I hope that was clear, if not I can post code on Monday.
Thomas D. Greer
A DataSet is bound to the DataGrid.
I'm using the <%#DataBinder.Eval(Container,"sqlField"
In my ItemDataBound event handler, I'm looking at values in the DataSet.
I want to change the value of a label within the DataGrid TemplateColumn based on a value in the DataSet.
The event is firing right, I've got down to an IF statement for the DataSet value, all I need to do is add code to say "now change such and such". I don't know how to refer to controls in the column/cell/whatever.
I hope that was clear, if not I can post code on Monday.
Thomas D. Greer