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

How to get full row having all the columns from selected items

0 Answers 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richa
Top achievements
Rank 1
Richa asked on 01 Feb 2012, 01:09 PM

I am not able to get the rows having all the columns. Only the columns which are visible using scrollbar are coming as cells of that row.

I have used below given code.

var
rows = gridView.ChildrenOfType<GridViewRow>();

 

 

 

foreach (var row in rows)

 

{

 

 

foreach (var cell in row.Cells)

 

{

 

 

foreach (var selectedItem in gridView.SelectedItems)

 

 

 

{

 

 

 

var row = (gridView.ItemContainerGenerator.ContainerFromIndex(1) as GridViewRow);

 

 

 

 foreach (var cell in row.Cells)


Please suggest me how to get full row having all the columns from selected items.
I have enabled column & row virtulization.

 

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Richa
Top achievements
Rank 1
Share this question
or