i have a tabcontrol with 2 tabs.
in my datasources pane i have a table with 4 columns -- col1, col2, col3 & col4. now i drag n drop col1 in tab1 & col2 in tab2 as bound textboxes. i place col3 & col4 on my form.
when i run the program, everything's cool. i can navigate the records and all textboxes display the correct data. i click the tabs and everything's fine.
now what i'll do is to programatically display a tab based on the value of col3.
tabcontrol.sele cttab(tabpage)
here goes the problem. when i navigate the records, col4 does not display the correct record. sometimes its correct sometimes not. when i comment the code for selecting the tab, everythings cool again. it seems like selecting the tab thru code causes major turbulence in the bindings.
please enlighten me.
in my datasources pane i have a table with 4 columns -- col1, col2, col3 & col4. now i drag n drop col1 in tab1 & col2 in tab2 as bound textboxes. i place col3 & col4 on my form.
when i run the program, everything's cool. i can navigate the records and all textboxes display the correct data. i click the tabs and everything's fine.
now what i'll do is to programatically display a tab based on the value of col3.
tabcontrol.sele cttab(tabpage)
here goes the problem. when i navigate the records, col4 does not display the correct record. sometimes its correct sometimes not. when i comment the code for selecting the tab, everythings cool again. it seems like selecting the tab thru code causes major turbulence in the bindings.
please enlighten me.
Comment