Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2395
Is there a way to determine row location?
posted

Hi,

 

I want to style cells differently if they are in the last row of the grid.

I partially achieved it using converter using the following code:

 

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

{

DataRecord record = value as DataRecord;

if (record == null)

return false;

return record.VisibleIndex == record.ParentCollection.Count - 1;

}

But after sorting the grid it does not work.

Id there any way to determine that DataRecord is in the last row?

Thanks.

 

Parents Reply Children
No Data