Hi,
in my webdatagrid, i am using TemplateDataField in this column i am using checkbox.
but when page postback then it goes out to visible, what should i do to show it?
i have already set grid viewstate true.
How to apply paging in webDataGrid?
i am using
<ig:Paging PagerMode="Numeric" PageSize="20"> </ig:Paging>
but it shows older data when i navigate, Actuly i have created the column dynamicaly.
and i have used the page as above, but page ddata does not change when i click on next.
Hello,
Thank your response. I am following up to see if you need any assistance with this matter.
Thanks for reply,
To persist any changes within an editor control in a template, you need to access the control and save the value manually. You may use the below lines of code to find value on the control and save it manually across post back. Below lines of code implement this:
int i = this.WebDataGrid1.Rows.Count;for (int j = 0; j < i; j++){CheckBox chktest = (CheckBox)this.WebDataGrid1.Rows[j].Items[0].FindControl("chk");if (chktest.Checked == true){//Write you code to save value}}
I would suggest you to use “UnboundCheckBoxField” introduced in version NetAdvantage 2011.1. Review the sample from the link below that will give more details on storing unbound data: <http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Data/Unbound-Checkbox-Column/Default.aspx?cn=data-grid&sid=2b5c08e1-23a8-43c6-a28c-7dc4aa1d8c43>
Hope this helps.