Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Format GridDataItem in radPivotGrid

$
0
0

I have a regular radGrid where I do some data formatting for localization.

 I want to get at the GridDataItem like so:

protected void OnItemDataBound(object sender, GridItemEventArgs e)
       {
           // We need to make sure empty entries are intialized to 0.00 and are set to the correct currency symbol
           if (e.Item is GridDataItem)
           {
               GridDataItem item = (GridDataItem)e.Item;
               FormatItem(item);

I know that a radPivotGrid does not have an OnItemDataBound event. I'm also not certain there is an event that receives the GridItemEventArgs?

It seems like the path I may want to take is to get at the individual cells within the pivot grid. Perhaps through the radPivotGrid1_OnCellDataBound event.

This event receives -> PivotGridCellDataBoundEventArgs

So my question is this. Am I on the right path? If I want to iterate the grid and format the numerical data how would I go about getting at the actual cell?

 Thanks,

julian


Viewing all articles
Browse latest Browse all 94857

Trending Articles