Feb 05, 2013, 9:02 PM
[CLOSED] Insert records in a gridpanel from codebehind
I can insert records in the gridpanel, each record inserted sent it directly to the database.
But now I want to insert records, without storing them in the database, to the end, for example:
By clicking "Agregar Paso" shows the following:
By clicking on the "Agregar" button, you should insert a new record in the gridpanel with the data shown in the window, but do not insert it into the database.
I do so with the following code:
How could I solve this problem?
thanks!
But now I want to insert records, without storing them in the database, to the end, for example:
By clicking "Agregar Paso" shows the following:
By clicking on the "Agregar" button, you should insert a new record in the gridpanel with the data shown in the window, but do not insert it into the database.
I do so with the following code:
Dim datos As New List(Of Object)()
datos.Add(New With { _
Key .ProcRecPasos = Date.Now.TimeOfDay.ToString, _
.Nombre = "Paso uno de prueba", _
.Peso = 2, _
.Obligatorio = True, _
.Duracion = 10, _
.Porcentaje = Porcentaje, _
.TipoCalificacion = "N", _
.EnviaAlerta = True, _
.JefeInmediato = False, _
.Solicitante = True, _
.UsuarioEspec = False _
} _
)
StoreProcRecPasos.DataSource = Datos
StoreProcRecPasos.DataBind()
but only inserts a record, no more, because I do not know how to accumulate records in the variable "datos"How could I solve this problem?
thanks!
Last edited by Baidaly; Feb 06, 2013 at 10:53 PM.
Reason: [CLOSED]