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);
}
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
Please login first to submit.