Hi,
i am using WebDataGrid, i have a checkbox templatecolumn this is fix in aspx page and
all other grid columns are creating dynamically and binding the grid to the DataTable. Paging
and rowselection is also allowed in grid.
if i do click on Next record(Paging Next) to see next record then it gives the below exception.
Object reference not set to an instance of an objectat Infragistic.web.UI.GridControls.WebDataGrid.InstatiateTempaltes()at Infragistic.web.UI.GridControls.WebDataGrid.BaseGrid.EnsureTemplates()at Infragistic.web.UI.Framework.Data.FlatDataBoundControl.CreateChldControls()at Infragistic.web.UI.GridControls.EnsureChildCOntrols()at System.web.UI.Controls.PreRenderRecursiveInternal()
but if i bind the grid on PagePostback, then it does not throw exception, but my row selection
goes out, how can i resolve this problem?
To resolve paging issue, if i bind the grid on evenry PagePostBack then my row selection goes out.
please suggest me the solution asap, i am searching from long time to resolve this issue.
Only paging is not an issue, if my page has a button and a row is selected in grid and i clicked on
button to edit selected row and i am binding the grid on postback then selection goes out
Please suggest me to resolve these problem.
What version of the controls are you using? If you are using 10.3, there is a property on the Selection Behavior that will allow SelectionAccrossPages to work. I put together a small sample demonstrating this with a checkbox template column. I am not able to reproduce the problem. Please run the attached sample and let me know what you think. If you can make my sample reproduce the problem, re attach the bad sample and I will look at it and send it to development if necessary. Until then, I am not sure what the problem is.
Also, you will have to bind the grid on every postback because it needs to be bound on every postback because it does not keep all the row information in viewstate. It has to rebind itself to recreate its row structure.
Hope this helps.
I had to take out the ig_res folder to make this small enough to attach to this post. Please put the ig_res folder back in there before running it.