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

Which RadGridView was expaned

1 Answer 9 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mateen
Top achievements
Rank 1
Mateen asked on 22 Apr 2011, 03:40 PM
Hi,

I have a RadGridView that contains a DataTemplate , that contains another RagGridView and a  Button. The rows of the second RadGridView contain TextBoxes. When i Press the button , the data in the TextBoxes of the second RadGridView are sent to the server to be validated. My Question is How do i now which Row was expanded, or rather which Row button was pressed , so that the data in thoose textboxes can be read and validated.

Kind Regards,

Muhammad Mateen

 

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 25 Apr 2011, 09:51 AM
Hello Mateen,

Assuming you know which button was clicked , then you can just check its DataContext .
something like ((Button)sender).DataContext .  The DataContext of the button should be the business object displayed in that specific row. 

Kind regards,
Pavel Pavlov
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
Mateen
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or