Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
Initially a row appears to be selected but nothing is selected
posted

When i fill a data grid with some rows from a database, one of the row appears to be selected but when I check there is nothing selected and the ActiveCell and ActiveRow are both null. How can I clear the appearance that something is selected?

Parents
  • 5118
    posted

    Hello,

    yea... just set the ActiveRow = null after you set the DataSource and all will be as you expect.  Even though it is null, here you need to explicitly set the ActiveRow to null to achieve the desired results. 

Reply Children