We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Computed column in dataset not visible in ggc GridRecord object

I have a dataset that I later add a computed column to... like in the code below. This dataset is then bounded to the ggc. However, I noticed that this column is not showing in the GridRecord object of the grid. What am I missing?

DataSet ds = SupportDB.Test_GetSpot();

DataColumn dcTotal = new DataColumn("Total", System.Type.GetType("System.Decimal"), "([Qty] * [Rate])");
dsSpot.Tables[0].Columns.Add(dcTotal);


3 Replies

AD Administrator Syncfusion Team September 21, 2006 05:07 AM UTC

Hi James,

I was not able to reprodue this problem here, please see the attached sample that works fine in displaying expression column in grid.

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/GGCUpdate_36263e39.zip

If this did not help, please update us with a sample project showing the problem.

Thanks,
Haneef


JA jamesb September 21, 2006 04:42 PM UTC

The only difference between this sample and what I am doing is that I am populating the dataset first and then adding the computed column later after the dataset population. This sample is defining the datatable columns and then manually populating the datatable. Could this be the culprit?

>Hi James,

I was not able to reprodue this problem here, please see the attached sample that works fine in displaying expression column in grid.

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/GGCUpdate_36263e39.zip

If this did not help, please update us with a sample project showing the problem.

Thanks,
Haneef


JA jamesb September 21, 2006 07:00 PM UTC

My bad... I saw my mistake... you''re right!

Loader.
Live Chat Icon For mobile
Up arrow icon