Posted on: 10/16/2013 6:04:30 PM | Views : 736

How do i format the price with code?

Dim DV2 As DataView = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), DataView) If DV2.Count > 0 Then Dim i As Integer = 0 Do Until i = DV2.Count 'Create & fill Datarow Dim dr As DataRowView = DV2.Item(i) 'Create & fill Data Table Row Dim row As DataRow = t.NewRow() row("Inventory Code") = dr.Item(0).ToString row("Inventory Description") = dr.Item(1).ToString row("Price") = dr.Item(2) t.Rows.Add(row) i = i + 1 Loop End If groupCt = groupCt + 1 Loop

Go to the complete details ...