Skip to content
View in the app

A better way to browse. Learn more.

GamingCR

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DataSet y DataGrid ASP .NET

Featured Replies

Maes no se si alguno que tenga rato de trab en .NET le haya pasado esto o haya tenido que hacerlo pero tengo el siguiente problema

Imaginense que tengo un grid con 3 registros 1, 2, 3, cuya columna 3 es un 1 o 0 y de forma que cuando le hago bind al grid con este dataset, en el evento ItemDataBound le digo que si viene un 1 ponga en el Grid un "Si" o si es un 0 ponga un "No" (Esto para la columna 3). Ahora el problema no es ese, ese es masomenos el contexto.

La vara es que cuando me borran la linea 1, lo hago mediante la funcion Row.Delete(), y no con el Remove del DataTable, esto hace que el Row siga estando en el Dataset hasta que se le haga un AcceptChanges (tiene que ser asi ya uqe necesito guardar el Dataset hasta el final), por lo que cuando me borran la primera y vulevo a hacer DataBind para refrescar el cambio en el DataGrid no se como obtener que apartir de la linea 1 del Grid corresponde a la 2 en el DataSet, (recuerden que la 1 esta en estado Deleted, por lo que si lo hago con e.Item.ItemIndex me diria un error de "System.Data.

DeletedRowInaccessibleException: Deleted row information cannot be accessed through the row",

Pense que con la otra propiedad (e.Item.DataSetIndex) me lo iba a dar pero tampoco.

No se si alguien sabe como hacerlo.

Tuanis

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.