Hi..
I have created xamdatagrid with some data.
it has 10 rows and 10 colums.
Now i want to enable cells only from column 4 to 7 for a perticular record.
I want to do like this for every record which series of cells i want to enable means it wil enable.
remaining cells should be disabled.
Can u suggest answer for this.
And one more thing.Xamfeature browser examples are helpful.
But in that c# code you are using Strings class.
What is that class..what are that properties..
If i try to use tat program individually means in xaml code u have used that Strings class properties.
How to use that Strings class in our project.??
Thank u very much.
Hello,
I did not understand your requirement. You are using the CellActivated event but I am not sure what you want to do in it. Can you give us more information on that?
I want to change cell by value but i can´t . can you help me.
Private
XamDataGrid1.CellActivated
= e.Cell.DataPresenter.ActiveRecord.Index
how can change content row and col ????
Alex,
Thanks and yes the event options seems rather unpredictable. I added three independent value conversion style classes one works fine, but two of them conflict and one overwrites the other. I need help trying to make sure they work independently of each other.
Glenn
Glenn,
Even though I created the sample and the third option (handling events) I do not recommend it :) - as you can see that approach needs fine tuning in different scenarios.
I am going to create a support case on your behalf so you can give me more details on your scenario and I will be glad to look into your scenario deeper and come up with a fine working solution for you.
A few observations. Attempting to use the below to call the value converter in the example does not resolve the value of the cell. It simply passes the object value as "Text". Text is not a color, so it's not picking it up from the field.
Using the Xaml Approach disabled the entire row rather than the more desirable cell only.
<local:TextToColorConverter x:Key="conv"/> <Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Foreground"> <Setter.Value> <Binding Converter="{StaticResource conv}" Path="Record.Cells[2].Value" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type igDP:DataRecordPresenter}}"/> </Setter.Value> </Setter> </Style>
Thanks,