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

How to get Parent Row details in RadGridView_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)

0 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Laxman
Top achievements
Rank 1
Laxman asked on 20 Sep 2012, 12:18 PM

Hi Support Team,



 

private void RadGridView_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)

{

}


I have to get the Parent Row details like Employee ID, Employee Name and based on that Employee ID I need to get data from the database and bind in the child RadGridView at run time. So I would like to get the Parent Row details in this event. how to do that?

The way I am doing is following:

private void RadGridView_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)

{

  GridViewRow row = e.Row;
 string EmployeeID= row.Cells[2].Content.ToString();
 if EmployeeID= (':') == -1)
    return;
  else
   EmployeeID= = EmployeeID= EmployeeID= (':') + 1);
   this.EmployeeID=  = Convert.ToInt32(EmployeeID);

}


sometimes it does not giving me Employee ID. Please help me how to get Employee ID always whenever this RowVisibilityChanged() Event fires.

Please help me.

Thanks

Laxman


No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Laxman
Top achievements
Rank 1
Share this question
or