i am having one datagrid . i am binding data to that grid. in that grid i am having one column in that column i took one hyperlinkbutton called TakeExam in datatemplate. i am having employeeid column in that datagrid. now when i click on hyperlink i have to get the employee id of perticular row . i am sending my source code and xaml.cs file too.can anybody help me
private void Hpl_TakeExam_Click(object sender, RoutedEventArgs e)
{
foreach (Assessment assesment in Grd_AssessmentDetails.ItemsSource)
{
FrameworkElement ele = Grd_AssessmentDetails.Columns[columnindex].GetCellContent(assesment);
Label allotedexamid = ele.FindName("lbl_AllotedExamid") as Label;
allotedexamid.Content = assesment.AllotedExamID;
}
Thanks
P.Nagaraju.
nagarajuPosted Sep 21, 2011, 11:47 PM
Suthish NairPosted Sep 21, 2011, 2:23 PM