Hi I am Marko,
What I want to do is to fill xamGrid with email titles and then to have an option to expand each row so that I can see email body (text that is) . And that text can be very big or very small and there fore height of the expanded row can vary (be very high or very low). I saw on this site that xamGrid has an option to make rows expandable. How do I achieve all this? Because when I load email text in the grid the row height is always the same and its the height that I specified in properties of the grid for example 23px. This way I can not see hole of the text - I can see only part of the email text - part that fits into that columns width. I want to see hole of the text no matter how big it is (multiple rows text and not in one line). When I set column width to "Auto" width of the column goes wide as far as header text of that column -and this is behavior that i wand but also I want the height of the row to grow according to the size of the email body text. I don't now how to do this.
Please help.
Best regards,
Marko.
The issue of rows "holding huge text" is resolved with TextWrapping="Wrap" for <ig:TextColumn of xamGrid.
best regards
Marko
Hello Marko,
Thank you for your answer.
I am just checking if you need any further assistance on the originally discussed matter, or the issue does not stands anymore.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Ok, I have opened a new topic for this xamGrid and ColumnLayout columns stuff.
Didn't read your post yet, I will read it when I go home tonight,
thanks for response, my next post will be under new topic xamGrid and ColumnLayout columns
Best regards
Would you please if possible open new forum threads for the issues that are not directly related to the currently discussed topic. That way, we would be able to perform separate investigations and keep a better track on every different issue that we are assisting you with.
Thank you in advance.
Hello,
I have been looking into the sample provided and compared to your scenario the two implementations does basically the same, but the Infragistics sample performs the action via binding from the xaml.
To be more specific, you set the xamGrid’s ItemsSource in the code behind. I am not sure what e.Result is, but I assume that this is the output from the service that provides the data. You mentioned that you have collection of Users that are loaded with data retrieved from the db. Let say that you have a Name property in this User class and you have filled it with a data. In case you have a textBox, like in the Infragistics sample, that you wish to fill with this name, you can do this in two different ways:
From the code behind:
myText.Text = User.Name;
or bind it from the xaml:
xmlns:local="clr-namespace:MySamle" //reference to the codehind
.
<Grid.Resources>
<local:User x:Key="UsrData"/> // we get the class
</Grid.Resources>
<Text="{Binding Source={StaticResource UsrData } , Path= Name }" // and bind to the needed property
What happens in the sample is pretty much the same and it is possible to Grid’s ItemsSource from the xaml. Notice that you probably should implement the INotifyPropertyChanged interface, in order to have your TextBox updated according to its corresponding data source. For more information on the mentioned interface, please visit:
http://msdn.microsoft.com/en-us/library/ms743695.aspx
Please do not hesitate to ask any question regarding the original discussed topic.