Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
UltraGrid with related DataTables
posted

 Hi guys, I need help urgently. I have two tables:

TableA, with columns ID, B_ID, Name and

TableB,  with columns ID, Description.

Tables  connected by DataRelation from TableA:B_ID to TableB:ID.

How I can tell UltraGrid to display Description value from TableB, instead B_ID, when binds to TableA? Grid is read-only.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     I'm not sure I understand your question. If you are asking how to hide a column, you use the Hidden property on the column. You would typically do this in the InitializeLayout event of the grid. Something like this: 

    e.Layout.Bands["TableA_TableB"].Columns["ID"].Hidden = true;

    In the above line of code "TableA_TableB" refers to the key of the data relation.

Children
No Data