New Row not using Columns[i].CellTemplate

4 replies. Last post: May 19, 2010 11:17 AM by Andi Santoso
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
David ParkinMember

I'm using the

<LayoutSettings AllowAddNew="Yes"

 

and, a template for a column:

 

this.RootTable.Columns[iColIdx].ColumnType = ISNet.WebUI.WebGrid.ColumnType.Template; this.RootTable.Columns[iColIdx].EditType = EditType.Checkbox; BooleanEditTemplate bt = new BooleanEditTemplate(); this.RootTable.Columns[iColIdx].CellTemplate = bt;

 

This works great for all the rows in the grid, except the New Row. The New Row (at the top of the grid) doesn't load the template. It defaults to the standard checkbox. How do I get the New Row to use the template?

 

regards,

David Parkin

All times are GMT -5. The time now is 5:05 PM.
Previous Next