TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Thanattha Bussapak
NA
20
19.4k
How to send multiSelect to page
Jan 7 2014 11:12 AM
I have dataBinding form mySQL show in multiselect ,I want select data to show another page
<toolkit:MultiselectList x:Name="sList" Visibility="Collapsed"
ItemsSource="{Binding }"
Background="Transparent" FontSize="25" Margin="0" >
</toolkit:MultiselectList >
MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(e.Result));
ObservableCollection<sResult> list = new ObservableCollection<sResult>();
DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(ObservableCollection<sResult>));
list = (ObservableCollection<sResult>)serializer.ReadObject(ms);
List<sResult> myResult = new List<sResult>();
foreach (sResult cm in list)
{
//string sRound_ID = cm.Round_ID.ToString();
//manageTime
string sRound_ID = cm.Round_ID;
string sDate_dmy = cm.Date_dmy.ToString();
string sTrain_ID = cm.Train_ID;
string sTime = cm.Time;
string sStatus = cm.Status.ToString();
string sRes = cm.Train_ID + cm.Time + cm.Status;
myResult.Add(new sResult(sRound_ID, sDate_dmy, sTrain_ID, sTime, sStatus));
//myResult.Add(new sResult(sRes));
}
// this.sList.ItemsSource = myResult;
prog.IsVisible = false;
List<string> se = new List<string>();
foreach (sResult cm in list)
se.Add(cm.Train_ID + "\t\t" + cm.Time + "\t\t" + cm.Status);
sList.ItemsSource = se;
Reply
Answers (
0
)
Insert Specific Datatype value in HashTable
Get a substring