How to set focus on c1OlapPage RawDataGrid control?

Originally Posted 6 January 2017, 12:34 pm EST

  • Originally Posted 6 January 2017, 12:34 pm EST



    is it possible to set the focus on the rawdataGrid when the c1OlapPage is loaded?

    i tried the following among others but nothing seems to work:

    private void c1OlapPage1_Load(object sender, EventArgs e)
    {
    c1OlapPage1.TabControl.TabPages[2].Select();
    Application.DoEvents();
    c1OlapPage1.TabControl.TabPages[2].BringToFront();
    Application.DoEvents();
    }
  • Reply

    Hi,

    For showing RawDataGrid on Form Load, you need to use "SelectTab" method of C1OlapPage and pass RawDataGrid's index to it,as follows:

    c1OlapPage1.TabControl.SelectTab(2);


    Attached is sample application for any reference, if required.

    Regards
    Ruchir Agarwal
    2017/01/prj_setFocusToRawDataGridC1Olap.zip
  • Marked as Answer

    Reply

    Thank you!, this worked!

    M.Moukalled
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels