Recorrer filas de un UltraWebGrid por CodeBehaind en aspx y obtener valores de columnas

//Recorremos las filas del objeto UltraWebGrid que para este ejemplo le asigne el nombre uwgEnvioDetalle

foreach (UltraGridRow row in this.uwgEnvioDetalle.Rows)

{

    if (row != null)

    {

      if (row.Cells.FromKey("chkEliminar").Value != null)

      {

          //obtener el valor de una columna tipo CheckBox por cada fila

 bool  chkCelda =bool.Parse( row.Cells.FromKey("chkEliminar").Value.ToString());

          if (chkCelda==true)//Eliminar

          {

              //obtener un valor de una columna det tipo decimal

decimal ClienteId=  decimal.Parse(row.Cells.FromKey("ClienteId").Value.ToString());                                                                     }

          }

    }

}

 

About omaracostacasas

ING SOFTWARE
This entry was posted in Infragistics. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s