Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/06/2009, 13:07
miguelajh
 
Fecha de Ingreso: julio-2006
Ubicación: En algún lugar de un grán pais
Mensajes: 112
Antigüedad: 17 años, 9 meses
Puntos: 2
Respuesta: mARCAR UNA ROW EN UN DATAGRIDVIEW COMO SI FUERA ERROR

hola!!!.
No, marca lo siguiente:

System.ArgumentOutOfRangeException was unhandled by user code
Message="El índice estaba fuera del intervalo. Debe ser un valor no negativo e inferior al tamaño de la colección.
Nombre del parámetro: index"
ParamName="index"
Source="mscorlib"
StackTrace:
en System.Collections.ArrayList.get_Item(Int32 index)
en System.Windows.Forms.DataGridViewColumnCollection. get_Item(Int32 index)
en EnvioDeMailTransferencias.frmEnviaMail.DataGridVie w1_CellFormatting(Object sender, DataGridViewCellFormattingEventArgs e) en C:\Documents and Settings\mijuarez\Mis documentos\Visual Studio 2005\Projects\WindowsApplication3\WindowsApplicati on3\Form1.vb:línea 121
en System.Windows.Forms.DataGridView.OnCellFormatting (DataGridViewCellFormattingEventArgs e)
en System.Windows.Forms.DataGridView.OnCellFormatting (Int32 columnIndex, Int32 rowIndex, Object val, Type formattedValueType, DataGridViewCellStyle cellStyle)
en System.Windows.Forms.DataGridViewCell.GetFormatted Value(Object value, Int32 rowIndex, DataGridViewCellStyle& cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context)
en System.Windows.Forms.DataGridViewRowHeaderCell.Get ErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, Int32 rowIndex)
en System.Windows.Forms.DataGridViewCell.PaintErrorIc on(Graphics graphics, DataGridViewCellStyle cellStyle, Int32 rowIndex, Rectangle cellBounds, Rectangle cellValueBounds, String errorText)
en System.Windows.Forms.DataGridViewRowHeaderCell.Pai ntPrivate(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates dataGridViewElementState, Object formattedValue, String errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts, Boolean computeContentBounds, Boolean computeErrorIconBounds, Boolean paint)
en System.Windows.Forms.DataGridViewRowHeaderCell.Pai nt(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, Object value, Object formattedValue, String errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
en System.Windows.Forms.DataGridViewCell.PaintWork(Gr aphics graphics, Rectangle clipBounds, Rectangle cellBounds, Int32 rowIndex, DataGridViewElementStates cellState, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)
en System.Windows.Forms.DataGridViewRow.PaintHeader(G raphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow, DataGridViewPaintParts paintParts)
en System.Windows.Forms.DataGridViewRow.Paint(Graphic s graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow)
en System.Windows.Forms.DataGridView.PaintRows(Graphi cs g, Rectangle boundingRect, Rectangle clipRect, Boolean singleHorizontalBorderAdded)
en System.Windows.Forms.DataGridView.PaintGrid(Graphi cs g, Rectangle gridBounds, Rectangle clipRect, Boolean singleVerticalBorderAdded, Boolean singleHorizontalBorderAdded)
en System.Windows.Forms.DataGridView.OnPaint(PaintEve ntArgs e)