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
close icon

GridGroupingWebControl foreign key column

Hello,

I am trying to dynamically replace a column that shows an ID with a column that will show the corresponding values from a look-up table for that ID. I found in one of your samples:
-------------------

//step 6. Replace maintable.LookUpCol with foreigntable.DisplayCol
string foreignPrefix = rd.Name + "_";
//get the hashed name of foreign col
string foreignDisplayColInMainTable = foreignPrefix + DisplayCol;
td.VisibleColumns.Insert(lookUpIndex, foreignDisplayColInMainTable);
//set its headertext to something other than default hashedname
td.Columns[foreignDisplayColInMainTable].HeaderText = ColumnHeader;

------------------------------------------

However this does not seem to work for ASP.NET grid. Can you send me an example that works?


1 Reply

RS Rajarajeswari S Syncfusion Team July 1, 2008 08:20 AM UTC

Hi Sorin,

Sorry for the delay in responding you.

In GridGroupingWeb we can create relationship between the tables and display it in the hierarchy mode. Currently our code library does not support your requirement. Please refer the sample from the below link, which illustrates of creating related tables in GridGroupingControl:

http://www2.syncfusion.com/samplebrowser/samples.aspx

Please let me know if you have any other concerns.

Regards,
Raji



Loader.
Live Chat Icon For mobile
Up arrow icon