Click here to Skip to main content
15,665,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
On windows load ,I am Binding data to datagrids in tabItem1 and tabItem2.

the datagridheader has checkbox and row also have checkbox ,the functionality of checking and unchecking working fine.

Now after selection in TabItem1,if i click the TabItem2 and then go for TabItem1(the changes are same not showing defualt datagrid) How can i achieve this?

On tabitem change it should set the previous tabitem to default values. Im new in WPF

thanks in advance

1 solution

void TabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
    if (e.Source is TabControl)
      //do work when tab is changed

You should put you logic to set the default values here. Hope this helps.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900