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
340
Change the default selection in grid on load
posted
Hi, How to cahnge the default first row selection in ultrgrid on load of the form? Thanks, swetha.
  • 5520
    Verified Answer
    posted

    if you are not using the event afterRowActivate.. this will help

     private void ultraGrid1_AfterRowActivate(object sender, EventArgs e)

            {

                ultraGrid1.ActiveRow = null;

                ultraGrid1.Selected.Rows.Clear();

                ultraGrid1.AfterRowActivate -=new EventHandler(ultraGrid1_AfterRowActivate);

            }

     

    it will remove selection and activation the first time, then the event is removed

    hope this helps