This is a migrated thread and some comments may be shown as answers.

controlling RowDetailsTemplate

0 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mallikarjun
Top achievements
Rank 1
Mallikarjun asked on 13 Dec 2011, 01:10 PM
Hi,

I am using the RowDetailsTemplate to show the meta data of that Row. In my scenario, user has provision to select multiple rows & delete at a time. If the user is selecting multiple rows either using the "Shift"/"Ctrl" key, then the row details should not be displayed.

I tried to subscribe to the "LoadingRowDetails" event, when this event is fired, then based on the condition (If Shift/Ctrl) key is pressed, i was setting the Visibility property to collapsed. However, since this event will be fired only once for each row & if the user has not deleted that row but later wants to see the details it will not be possible since visibility of the DetailsElement template is collapsed. Please let me know how can i achieve this.

e.DetailsElement.Visibility = System.Windows.Visibility.Collapsed;

Thanks,
Mallikarjun
Tags
GridView
Asked by
Mallikarjun
Top achievements
Rank 1
Share this question
or