Place a breakpoint on that line then. Is corporateid greater than 0? Is the SelectedTab set to tpmembers?
If your first if statement runs, indicating that the currently selected tab is tpDetails, then the second if statement will not run. Your if statements, as written, are mutually exclusive.
Place a breakpoint on that line then. Is corporateid greater than 0? Is the SelectedTab set to tpmembers?
If your first if statement runs, indicating that the currently selected tab is tpDetails, then the second if statement will not run. Your if statements, as written, are mutually exclusive. The way you've got it now, if the user is on tab1 and selects a row in the grid, then only tab1 will show data regarding the selected row.
If they want to view the data in tab2, they have to click on your grid again to load data into that tab. How about just loading all the data into both tabs at once, regardless of which one is currently selected? Int corporateid; if (e.
RowIndex >= 0 && int. TryParse(dgvCorporatedetails.Rowse.RowIndex. Cells0.Value.ToString(), out corporateid)) { if (corporateid > 0) { getselectedrecord(corporateid); // load data into tpdetails tab Getmembersdetails(corporateid); // load data into tpmembers tab } }.
What is the condition that I have to check.. – pratapchandra Sep 23 at 14:47 Just omit the tccorporates. SelectedTab == tpDetails and tccorporates. SelectedTab == tpmembers statements from your if blocks.
When the user clicks on tab2, everything will already be loaded for them. – Grant Winney Sep 23 at 14:56 Many thanks....for your support. – pratapchandra Sep 23 at 14:58.
Try to implement the SelectedIndexChanged event for the tabcontrol. So when you switch between the tab pages, update the respective controls.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.