Advanced Forum Search Results
-
Could someone post an example of this encoding and decoding? I can't seem to make it work.
Code at client side:
string wUrl = String.Format("caller={0}&proc={1}", wCaller, wProc);
wUrl = "http://localhost:50899/slproxy.aspx?" + wUrl;
webClient.DownloadStringCompleted += new ...
-
I have a problem with saving data. I use a webclient to communicate with the server, and each time I send something with a å ä or ö in it, that character is converted when it reaches the server. I've tried setting webClient.Encoding but there aren't that many alternatives, and nothing works. How do I solve this?
-
But I still don't understand why this happens. When I click the CheckBox, the SelectedIndex is not -1, and the code in the IF block is run. I have removed dataGrid.SelectedIndex = -1 from this method, and now I'm setting that in my DataGrid.Loaded event. I have to set that value, otherwise I can never choose the first Item in a ...
-
You're right, removing that SelectionChanged = -1 makes me able to check the boxes. Thanks! Now I just have to come up with some other way to do what I was trying to do with that line of code.
-
This is essentially what I'm doing in the SelectionChanges event. I'm not sure what you mean by the Dec 2008 version of the DataGrid, but I am using the latest version of Silverlight and I've tried updating everything I can.
1 private void dataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
2 {
3 ...
-
Changed "addFor" to "AddFor" but it's still not working. Could this have anything todo with me having a SelectionChanged event on the DataGrid? Somehow it skips over noticing that I clicked a checkbox?
-
Simplified, this is how it looks.
My class:
1 public class Student: INotifyPropertyChanged
2 {
3 public int studentID
4 public bool addFor;
5 public event PropertyChangedEventHandler PropertyChanged;
6
7 public Student(int studentID)
8 {
9 this.studentID = ...
-
Yes, I have.
-
Oops, mixed up some terminology. I do bind to a property and the class does implement the INotifyPropertyChanged interface, and IsReadOnly is set to false already.
-
My problem was that I was missing the last "," in data in <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> in the html testpage. Thanks for your answers.