Click here to Skip to main content
15,886,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I am workin in silverlight application using WCF. I want to show specific row from the database in the data grid.

I found e.result BUT this will show the whole from DB.

Below is my code:

C#
public TrainingBatchesUsersResults(int TraineeID)//, int TrainingProgramID, int ReadyContainerID, int TrainingBatch, int ReadyContainerItemID)
        {
            InitializeComponent();

            XraySimulatorWCFServices.XraySimulatorServiceClient XrayClient = new XraySimulatorWCFServices.XraySimulatorServiceClient();
            XrayClient.GetTrainingBatchesUsersResultsCompleted += new                 EventHandler<XraySimulatorWCFServices.GetTrainingBatchesUsersResultsCompletedEventArgs>(DisplayTrainingBatchesUsersResults);
            
            XrayClient.GetTrainingBatchesUsersResultsAsync(TraineeID);
            
            LayoutRoot.UpdateLayout();

        }

        private void DisplayTrainingBatchesUsersResults(object sender, XraySimulatorWCFServices.GetTrainingBatchesUsersResultsCompletedEventArgs e)
        {
            dgvResult.ItemsSource = e.Result;
            dgvResult.Visibility = System.Windows.Visibility.Visible;
}
Posted
Comments
zuhoor 6-Apr-15 23:55pm    
Any help please???

I need it ASAP

Regards

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