Select.Row in the datagridview is not working

0
0

I am recovering data when i select a row. It was working, but i did something that know is not working, i want know if have something that block this behavior in the properties in datagridview.

mycode:

UsuariosMensagens userMsg = new UsuariosMensagens();

userMsg = MsgDataGridView.CurrentRow.DataBoundItem as UsuariosMensagens;

var retorno = msgDal.RecuperaMensagemDetalhadaExibicao(userMsg);

if (retorno != null)
{
MensagemLabel.Text = retorno;
textBox1.Text = retorno;
}
else
{
string msgRetorno = ” ERRO retorno -> ” + retorno;
AlertBox.Show(msgRetorno);
}

  • You must to post comments
0
0

Thanks

  • You must to post comments
0
0

Jay,

you might want to check the SelectionMode of your DataGridView:

https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview#selectionmode

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.