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

GetVisibleRowIndex is obsolete

3 Answers 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Aldemar
Top achievements
Rank 1
Aldemar asked on 04 Feb 2009, 10:43 PM
Hi!

Which new method replace the obsolete method MasterGridViewInfo.GetVisibleRowIndex(...)?

thanks

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 05 Feb 2009, 01:41 PM
Hello Aldemar,

Thank you for this question.

You can use the IndexOf method of the Rows collection of the MasterGridViewTemplate. Do not hesitate to write me back if you have any other questions.
 

Greetings,
Jack
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Aldemar
Top achievements
Rank 1
answered on 12 Feb 2009, 09:39 PM
Hi!

Now my question is because MasterGridViewTemplate.Rows.IndexOf(..) needs a GridViewDataRowInfo information about row but  radGridView.SelectedRows method gets GridViewRowInfo information about row, how can I do to correct this error?

thanks
0
Accepted
Jack
Telerik team
answered on 16 Feb 2009, 10:21 AM
Hello Aldemar,

Thank you for writing me back. The SelectedRows collection contains GridViewRowInfo objects for backward compatibility. It is safe to cast these objects to GridViewDataRowInfo objects in this particular situation. Please do not hesitate to contact me if you have any other questions.

Kind regards,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Aldemar
Top achievements
Rank 1
Answers by
Jack
Telerik team
Aldemar
Top achievements
Rank 1
Share this question
or