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
185
ultraGrid limpiar Ultragrid
posted

Hola!

Cuando tengo dibujado un grid en pantalla y quiero volver a 'dibujar' otro sobrescribiendo el anterior me sale un mensaje: key aldready exist.

 

¿Como puedo limpiar un grid para poder volver a dibujar en el?

 

Gracias de antemano

Parents
  • 20
    posted

    Public Sub LimpiarGrid(gridpas as infragistics.Win.UltraWingrid.Ultragrid)

    try

    for each ro as infragistics.Win.UltraWingrid.ultragridrow in gridpas.rows

    ro.delete(false)

    next

    catch ex as exception

    End Try

    if gridpas.rows.count>0 then

    LimpiarGrid(gridpas)

    End if

Reply Children
No Data