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.
The CellValuePresenter will be null until the XamDataGrid is completely rendered. The CellValuePresenter is the visual representation of the cells. We recommend that any visual modifications to the CellValuePresenters are made through bindings or IValueConverters. The CVPs are virtualized and this may result in erroneous behavior if you are setting the above mentioned modifications directly.
So, what event can I use for CellValuePresenter not to be null? in XamlDataGrid_Loaded, CellValuePresenter is also null.
You've got me a bit lost. VB is also a foreign language for me. If I catch your drift you want to change specific cells based on either a cell position or value of another cell or color of your shirt etc? Is that correct? Naturally, what else is there? I guess you could change it based on phases of the moon...
Any-who...
Yes, CVP is the way to go. I always use a Style Converter and a separate class for the Converter. Whence you pass the value you are looking for, you simply validate it and act on it. I've attached one example of mine. Yes, a value could be a position in your case?
In this example I'm doing 3 or 4 CVP checks (based on value, not position) and conversions. Hope you can sort out just one. If reading this is confusing, it should be, it's complex.
Glenn
sorry i forget put event
Private
xamgrdrocpenpagos.CellActivated
hello
can you please explain me how can do cell image dinamic
= xamgrdrocpenpagos.ActiveCell.Record.Index
Infragistics.Windows.DataPresenter.Record = xamgrdrocpenpagos.Records(int)
Infragistics.Windows.DataPresenter.DataRecord = record
Infragistics.Windows.DataPresenter.Cell = record1.Cells(0)
Infragistics.Windows.DataPresenter.FieldSettings = record1.FieldLayout.Fields(0).Settings
r.CellValuePresenterStyle = xamgrdrocpenpagos.Resources.Keys(1)
i don´t know which mistake.
Thanks.