I am relatively new to c# .net. so please let me know if you want more input to answer my query.
1) what i am trying to do ?
The form that I am using is having nearly 30 data grid view controls in 3 different tabs. And name of datagridview's are below.
dgView1, dgView2, dgView3
Along with above datagrid control, i also got few textbox controls, so to be more specific in tab 1 .. i got below control items.
txtTabName1, txtStrKey1, dgView1
now I am trying to write a function which will take one input parameter say int v_CtrlNum
and using this parameter I need to scan each of the items from one tab and add it to an ArrayList/Collection.
so for example the function will need to read each row from the datagrid view as shown below
for datagrid
foreach (DataGridViewRow in dgView+v_CtrlNum )
for textbox
txtTabName+v_CtrlNum
I'd like to know if I'm taking the right direction doing this.