tenho este codigo:
eu quero fazer o seguinte:
A tabela ao ser carregada, coloque a coluna 5 sem dados se, na coluna 4 aparecer a palavra Factura.
Dá erro a dizer que o objecto não têm instancia..
Código:
[SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200]
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200][/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#eaeaac]protected[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] [/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#eaeaac]void[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]Page_Load[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200]([/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#eaeaac]object[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]sender[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200], [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f0dfaf][SIZE=2][COLOR=#f0dfaf]EventArgs[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]e[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200])
[/COLOR][/SIZE][/COLOR][/SIZE][/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200]{
[/COLOR][/SIZE][/COLOR][/SIZE][B][SIZE=2][COLOR=#eaeaac][SIZE=2][COLOR=#eaeaac]if[/B][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] ([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]GridViewFinanceiro[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]SelectedRow[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]Cells[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200][[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#8acccf][SIZE=2][COLOR=#8acccf]4[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200]].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]Text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] == [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#c89191][SIZE=2][COLOR=#c89191]"Factura"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200])
{
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]GridViewFinanceiro[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]SelectedRow[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]Cells[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200][[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#8acccf][SIZE=2][COLOR=#8acccf]5[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200]].[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#f8ffc6][SIZE=2][COLOR=#f8ffc6]Text[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200] = [/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#c89191][SIZE=2][COLOR=#c89191]""[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#d2d200][SIZE=2][COLOR=#d2d200];
}
}
[/COLOR][/SIZE][/COLOR][/SIZE]
eu quero fazer o seguinte:
A tabela ao ser carregada, coloque a coluna 5 sem dados se, na coluna 4 aparecer a palavra Factura.
Dá erro a dizer que o objecto não têm instancia..