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

[Solved] selecting index of active row

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Swarnlata Singh
Top achievements
Rank 1
Swarnlata Singh asked on 15 Oct 2009, 06:24 PM

1)How to set a row in radgrid as active row and take that particular index?
2)How to group three columns under one column in radgrid.
      For ex...
           Current is main column and under thar price,rate ,qty is der.

Please help me soon..

Thanks

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 15 Oct 2009, 09:24 PM
In order to programmatically set a row as selected you would do:

 
RadGrid1.MasterTableView.Items[0].Selected = true

How to get an index of a particular row:

 
foreach(GridItem myItem in RadGrid1.MasterTableView.Items) 
    int index = myItem.ItemIndex; 
Hope that helps.


0
Princy
Top achievements
Rank 2
answered on 16 Oct 2009, 04:33 AM
Hello Swarnlata,

You can refer to the following document to have two level headers in your grid which can be obtained by using HTML tables in the HeaderTemplate/ItemTemplate of GridTemplateColumns.
Customizing with GridTemplateColumn

Thanks
Princy.
Tags
Grid
Asked by
Swarnlata Singh
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or