Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1180
Change font color to load data.
posted

I am entering data through a datatable. That would need a criterion depending on the source was changed as shown below. It also follows an example of how I am entering data. How can I do this?

Dim dt As New DataTable("dtMov")
dt.Columns.Add("Name")
dt.Columns.Add("Value")

While not rs.eof

Dim row As DataRow = dt.NewRow()
row(0) = RS("name").Value
if
RS("value").Value >= 0 then
              row(1) = RS("value").Value 'PAINT OF BLUE
else
              row(1) = RS("value").Value 'PAINT OF RED
end if
dt.Rows.Add(row)
RS.MoveNext()


End While
Me.appGrid.DataSource = dt