Just getting started with the WebDataGrid. Project will have several grids displaying trade data with fields - symbol, quantity, price and principal. The quantity columns should all numeric with zero decimal places. What is the recommended way to apply a common style to a particular type of column ? Can I create a new class inherited from GridField ?
Thx in advance
Hi,
I am happy that you were able to use your derived class from BoundDataField in your application
Please note, work item 83810 was fixed in the following builds and their successor builds"11.2.20112.4811.1.20111.205010.3.20103.2175
If you have on of these build or newer, you will benefit from the fix we've created
Please let me know if you have any questions regarding this matter.
Thx Jose. I was able to derive a class from BoundDataField and use it within a grid. I had to use the workaround outlined in this post:
http://es.infragistics.com/community/forums/p/58326/296822.aspx#296822
Was that fix ever released ?
Thx
Thank you for posting on our forums.
While you should be able to create a new class inherited from GridField, I believe is best to use the built in DataFormatString feature for the WebDataGrid to format the column to display it's values as you specify.
Here are some helpful links regarding DataFormatString:http://es.infragistics.com/community/forums/t/44556.aspx http://es.infragistics.com/community/forums/t/67058.aspx https://www.youtube.com/watch?v=gKKziik7VW8 http://help.infragistics.com/doc/ASPNET/2014.1/CLR4.0/?page=WebDataGrid_Columns.html
Is it possible to do something similar to what was done in this example ?
http://es.infragistics.com/community/forums/t/79621.aspx
e.g.
public class MyGridField : GridField
{
...
}
and then use this class instead of the standard GridField ?