When I try to use the onitemdatabound function in a .NET page, nothing happens? I do a simple query to pull in all data from a small table (test mode still), and then use the itemdatabound to highlight some columns, but I get no datagrid, no error, nothing?
What Am I doing wrong other than amateur coding,hehehe
Thanks for any insight
Kai-What?
What Am I doing wrong other than amateur coding,hehehe
Code:
Connection String goes here
conMetrics.Open()
cmdSelect = New OleDbCommand("Select * From Metrology order by [Date_Time] desc", conMetrics)
Dim DataReader As OleDbDataReader
DataGrid1.DataSource = cmdSelect.ExecuteReader
DataGrid1.DataBind()
If (e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem) Then
If (e.Item.Cells(3).Text) < "6.000" Then _
e.Item.Cells(3).BackColor = System.Drawing.Color.FromName("#ffccff")
End If
conMetrics.Close()
Thanks for any insight
Kai-What?