C# Mainform Button Navigation childform filled in panel mainform
<p>I have a main form with main panel and filling child form in the main panel.<br>
I want some buttons in toolbar to navigate records based on Data Table created in the child form.<br>
Problem is I do not know how to accomplish this. 
Any code or guide to would be helpful. Thanks in advance. </p>

<p>So far I have done following:<br>
<strong>Main form</strong>: Tree list: click link to show child form which is added in the panel in mainform</p>

<p><strong>Child form</strong>: Form load event</p>

<pre><code>Datatable dt = new Datatable();
dt = DataAccess.GetStaff(); //Recieve data from class with query executed

gridStaff.DataSource = dt; 
</code></pre>

<p>How can I pass "dt" to public method then code the "Next" button in toolbar in the main form navigate. Next record is based on "dt" datatable (Is it possible?) or can I pass grid to public to navigate it. (I used extragrid devexpress).<br>
Or Show way to accomplish that issue. Thank you very much.</p>
