This is a migrated thread and some comments may be shown as answers.

IsVisible making columns leave cell list

1 Answer 5 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 13 Apr 2011, 09:10 PM
When a cell has the Isvisible property set to false it does not show up in the GridViewRowEditEndedEventArgs e.row.cells. Why is this? I am trying to do a base check on the fields but when a field is invisible it does not show in the args. It is in the column list of the grid just not here. 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Apr 2011, 11:45 AM
Hi Marc,

When you are working with WPF/Silverlight controls it is better to use the data elements, not the visual ones.
That is why if your column that is not visible is "Number" and the row that is populated is of type Player, you should use: (e.Row as Player).Number, e.OldValues["Number"], e.NewData.Number.

Does this solve your problem? If you do need to use the visual elements for some other reason, please let me now what exactly your purpose is, so that we can investigate this problem further.

Regards,
Didie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Marc
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or