As I am using Tableview to display record like grid format,it works fine but only thing is no grid line.pls advise how to use gridline for tableview using scrollview
I see that a) you didn't initialize the label 'L' in the subroutine and
b) even if you did, I don't see how you could read a latest label, since you write it after you write label0.
I think you should change the for loop as follows:
If i = 0 AND Table.GetView(rc.Row * NumberOfColumns + 1).Text = "Something" Then L.Color = Colors.Red
Sorry, but I don't really understand what you are meaning.Except for that now since we're doing a step-1 all the cols are brought in the wrong way around, so what's supposed to be in the first place is the last..
Yes, it would be possible, but why not doing it directly when you fill the table.Wouldn't it be possible to do something like a 'modifyView' to go back after drawing the table and say if in each row Col1 = 'Sth' then Col0 should be red?
cursor1 = SQL1.ExecQuery("SELECT * FROM Diario")
For i = 0 To cursor1.RowCount - 1
cursor1.Position = i
'con estas lineas metemos los datos en distintas variables para luego cargarlos juntos.
fecha_informe = cursor1.GetString("Fecha") 'pasa el dato recogido a la variable dato que es string
peso_informe = cursor1.GetString("Peso")
tipo_informe = cursor1.GetString("Tipo")
'aqui añadimos los datos separados por coma con lo cual las lineas serian FECHA,PESO,TIPO , para luego cargar ne listview
tabla.Add(Array As String(fecha_informe & "," & peso_informe & "," & tipo_informe)) ' aqui lo añadimos a la lista TABLA
Next
'con esto guardariamos un archivo en el directorio de la aplicacion con el nombre de informe.csv
Dim sa As StringUtils ' Libreria que hay que añadir
sa.SaveCSV(File.DirDefaultExternal,"informes.csv",",",tabla)
I'm using this great solution and it's working fine!This is a great solution! Much better than my suggestion..
What exactly is the problem ?
Do you adjust the ScrollView.Panel.Height ?
You may add one or two DoEvenets lines after the Height change.
What exactly is the problem ?
Do you adjust the ScrollView.Panel.Height ?
You may add one or two DoEvenets lines after the Height change.