Hi,
Here are the answers to your questions:
Quote:- How could I add the HeaderAdded event for Lanegrid in xaml(and in code behind as well.)
Diagram.LaneGrid, being a read-only property, is currently inaccessible in XAML and therefore its events can only be handled in-code. Keep in mind that this event is raised only when the headers are added interactively (through CTRL+Header resize). Adding headers through code will not raise this event.
Quote:- Can I bind the grid to any DataSource..
Unfortunately databinding on the lane grid is not supported at this time.
Quote:- Can the rows in Lanegrid be merged automatically based on any condition(at run time) or do we need to provid the code to handle this.
There is no automatic method for merging grid lanes. If you are using only a single level of headers, merging will be rather trivial - simply delete all the headers being merged, except the last one, and set the height/width of the remaining header to the total of all merged headers.
If you are using multilevel headers (that is, headers with subheaders, and so on), merging might be rather difficult depending on the specific scenario.
Meppy