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
219
Set ative cell in xmaWebGrid
posted

Hello,

I will set the active cell with following program code:

    private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
    {
      dg.Rows[0].Cells[1].IsActive = true;
    }

And I become a NullReferenceException. With the debugger I can see this cell with data.

Following program code with another row works correct:

    private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
    {
      dg.Rows[1].Cells[0].IsActive = true;
    }

Can you help me, please.