MHoward
4/4/2002 7:04:00 PM
Hey Simon,
thanks for responding. I have the objlist binding to the
dataview fine. It's when I render the data, I want to
display my lable field as Alternating color rows. Because
I'm binding at run time the samples I've seen don't work
for me.
MHoward
>-----Original Message-----
>Can you include the code-behind sample if the following
does not work for
>you.
>
>Assuming you have a valid daasource, (i.e data filled
correctly etc.). You
>can set the datasource for ObjectList2 in the code-
behind, and DataBind(),
>For example in C#
>
>if (!IsPostBack())
>{
> objectList2.DataSource = MyDataView;
> DataBind();
>}
>
>Or use the properties of the ObjectList control to
define the DataSource.
>You'll still need to make sure you call DataBind(),, on
the object or the
>page in the code behind in the Page_Load(),
>
>You could also use script on the ASPX, to perform the
same function as the
>code-behind.
>
>Simon Calvert
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>You assume all risk for your use. © 2002 Microsoft
Corporation. All rights
>reserved.