We are using a telerik Rad Gridview in our Silverlight Project. It have few fixed columns and few other dynamic. Number of dynamic column depend on the data.
We want to format specific columns while Exporting the gridview to excel.
Please find the attached image and code for more details of the issue and code we are using for this....
Our main concern is how to detect column header/column name of a particular cell in the element_exporting event. Something like this;;;;;
if(e.Element == ExportElement.Cell)
{
if(column.Header.ToString() == "My String Column")
{
e.Value = string.Format(@"=T(""{0}"")", e.Value);
}
}
Here we are not able to get the column object. If we get the column name then we can control the formatting inside the code.
Thanks for the help in advance..!!
We want to format specific columns while Exporting the gridview to excel.
Please find the attached image and code for more details of the issue and code we are using for this....
Our main concern is how to detect column header/column name of a particular cell in the element_exporting event. Something like this;;;;;
if(e.Element == ExportElement.Cell)
{
if(column.Header.ToString() == "My String Column")
{
e.Value = string.Format(@"=T(""{0}"")", e.Value);
}
}
Here we are not able to get the column object. If we get the column name then we can control the formatting inside the code.
Thanks for the help in advance..!!