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,
In order to disable/enable a particular cell of a record you need to set the CellValuePresenter's IsEnabled property to false/true. For example you can disable the first row's first cell like this :
private void button1_Click(object sender, RoutedEventArgs e){ CellValuePresenter cvp=CellValuePresenter.FromCell((xamDataGrid1.Records[0] as DataRecord).Cells[0]); cvp.IsEnabled = false; }
About the XamFeatureBrowser could you tell us which example your are refering to ?
Best regards
Vlad
Hello Zagorski..
Thanks for ur quick reply.
This one works fine.But i want to disable not only one cell.
Want to disable cells from 2 to 6 of that perticular record. and i want to apply some background
color to those disabled cells.
And about xamfeature browser what is the importance of Strings.resx file.
in that file u r declaring name value and comment..
you are using this strings.resx in every xaml page..
we try to use this strings.resx in our programs..but it gives error..
Because we are new to wpf and this xamdatagrid..
Can u clarify my doubt..
Thank u very much,,