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

Telerik.Windows.Data.DataRecord

2 Answers 64 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 18 Dec 2008, 11:20 PM
Hi..
How do I return my row values from the DataRecord object ?    Thanks Again!!

I'm using a converter class - as you suggested to conditionally format data...

public

 

object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

 

{

 

 

// If the Lastname field in my datarow  begins with "A" - then display an A ICON......      


 

 

 

if (((Telerik.Windows.Data.DataRecord)value).Data.ToString()=="A")

 

{

 

return "A.jpg";

 

}

 

return String.Format("{0}.jpg", ((Telerik.Windows.Data.DataRecord)value).Data);

 

}

2 Answers, 1 is accepted

Sort by
0
Jon
Top achievements
Rank 1
answered on 18 Dec 2008, 11:42 PM
Hi..
I assume all I have to is

 

DataSet1.RepInfoRow dr =(DataSet1.RepInfoRow) ((Telerik.Windows.Data.DataRecord)value).Data;

 

0
Rosi
Telerik team
answered on 19 Dec 2008, 08:17 AM
Hi Jon ,

Yes, this is the right way to achieve the task.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Carousel
Asked by
Jon
Top achievements
Rank 1
Answers by
Jon
Top achievements
Rank 1
Rosi
Telerik team
Share this question
or