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
100
not able to set selected row color to default
posted

I am trying to set a row activate/selected in order to show the default selected row color of light brown

 

   foreach (UltraGridRow oDr in this.dgVersions.Rows)                    {                   

                        if (Convert.ToString(oDr.Cells["Version"].Value.ToString()) == GlobalParams.oldVrsno.ToString() && GlobalParams.oldVrsno > 0)                        {              

                           this.dgVersions.Rows[i].Selected = true;                 

                           this.dgVersions.Rows[i].Activate();

                            this.dgVersions.ActiveRow = oDr;                    }

                        i++;    }

 

As you see in thesccrenshot i am trying to highlight the 2 row of the bottom grid