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
190
XamWebGrid Column layout
posted

Hi,

I was able to create a hierarchy webgrid (using ObservableCollection) and would like to create the column layout dynamically. 

here is my code:

 

 

 

e.ColumnLayout.Columns.Add(

new TextColumn(){

HeaderText =

"TestId",

Key = "Id",

Width =

new ColumnWidth(20, false));

But it gave me this error:

The following key(s) do not correspond with the DataSource: "Id".
If you'd like to add additional columns, please use the TemplateColumn type.


Using the ColumnLayoutAssigned event, how do I get the key of each column for each band - parent and child?
Thanks for your help

Parents Reply Children
No Data