GGC go to name column

  Hello

 how can I make a scenario

button1_Click

find the "Name42 " position in the column and set the horizontal scrollbar .

 1. move the scrollbar automatically so that it is visible "Name42"


Attachment: test_GGC_Scrolling_auto_360d0cfa.rar

4 Replies

SP Sreemon Premkumar Muthukrishnan Syncfusion Team September 24, 2024 05:46 PM UTC

Hi Gregory Pe,

We are currently reviewing your requirement and need some time to validate the behavior of the scrolling. We will update you with further details on or before September 26, 2024.

We appreciate your patience until then.

Regards,

Sreemon Premkumar M.



SP Sreemon Premkumar Muthukrishnan Syncfusion Team September 26, 2024 05:27 PM UTC

Hi Gregory Pe

Your requirement to scroll horizontally to the destinated column can be achieved by calling the TableControl.ScrollCellInView method by passing the required Row and column index. Please find the code snippet below. 

Code snippet

private void button1_Click(object sender, EventArgs e)

{

    string wanted_column_in_GGC = textBox1.Text ;

    // Finding the index of the column your searching.

    var columnIndex = gridGroupingControl1.TableDescriptor.Columns.IndexOf(wanted_column_in_GGC);

    gridGroupingControl1.TableControl.ScrollCellInView(0,columnIndex );

}


We have modified the sample based on your requirement, please find it in the attachment. 

Regards,

Sreemon Premkumar M.


Attachment: test_GGC_Scrolling_auto_ed21a76d.zip


GP Gregory Pe September 27, 2024 11:46 AM UTC

it works thank you .

best regards



SP Sreemon Premkumar Muthukrishnan Syncfusion Team September 30, 2024 04:52 AM UTC

Hi Gregory Pe,

We hope that your query has been resolved with our proposed solution. Please get back to us if you need further assistance. We are happy to help you.

Regards,
Sreemon Premkumar M.


Loader.
Up arrow icon