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
9364
Notification when a new DataColumn is added to bound DataTable
posted

The DataTable my Grid is bound  has  DataColumns added to it  at run time. 

I need this newly added DataColumn positioned correctly between two existing columns on the Grid.

What is the best way to make this happen?

1. Change the new DataColumn's ordinal position on the DataTable to be placed between the two column? Would doing so make the new UltraGridColumn show  correctly between the corresponding two UltraGridColumns?

2. Not change the DataColumn ordinal. But instead position the new UltraGridColumn directly.

 

Questions

- Ideally it is #1 because then all my positioning logic can reside in the  "data layer" logic. But I am not sure it will do the job for positioning corectly on Grid. Comment?

- If I have go with #2, how does the Grid get notified of a new UltraGridColumn being added? Any sample code (KB entry, etc) appreciated.

Thanks!

 

Parents Reply Children
No Data