Populating GridView without any selected record

0

I'm populating a GridView and it's populating with the first ever selected record.

var lstUsurios = new V_ENTIDADE_X_PWDNegocio().Listar();

gdvAcesso.DataSource = lstUsurios; 

gdvAcesso.DataBind();

I have tried to change some properties of it and nothing ...

How could you get around this?

    
asked by anonymous 22.08.2016 / 17:14

1 answer

0

I do not know if you can prevent the Grid from making the selection, but to clean it is quite easy:

gdvAcesso.SelectedIndex = -1;
    
22.08.2016 / 17:17