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

CellValue for a group row

1 Answer 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Laura Serban
Top achievements
Rank 1
Laura Serban asked on 27 Aug 2009, 10:22 AM
Hello
I have a radgrid gouped by a collumn (categoryid)
I need to get the value of categoryid when the user clicks on the goup row. I tried to use currentrow, but all the cellvalues are null. DataBindItem is also null.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Laura Serban
Top achievements
Rank 1
answered on 27 Aug 2009, 01:09 PM
in the mean time, I’ve came with this solution:


 int index = gridViewPriList.CurrentRow.GridViewInfo.CurrentIndex;
                GridViewRowInfo dr = gridViewPriList.Groups[index].GetRow(0);
                _categoryid = Convert.ToInt16(dr.Cells["categoryid"].Value); 
Tags
GridView
Asked by
Laura Serban
Top achievements
Rank 1
Answers by
Laura Serban
Top achievements
Rank 1
Share this question
or