or

<telerik:GridCheckBoxColumn DataField="IsActive"
HeaderText="IsActive"
SortExpression="IsActive" UniqueName="chkIsActive">
</telerik:GridCheckBoxColumn>
In edit mode the check box is in edit mode , but getting the value from the particular checkboxcolumn is the problem.. Please help me to retreive the value from the checkbox on clicking update after editing. Thanks in advance..
CheckBox
chkIsActive = (CheckBox)item.FindControl("chkIsActive");
if
(chkIsActive != null)
{
if (chkIsActive.Checked)
isActive =
"1";
else
isActive =
"0";
}
please help me with a code
private bool StoreInLocalVariable;
private Collection<CustomerData> CustomerData;
protected void btnGetData_Click(object sender, EventArgs e){ // Rebind grid without paging to get full data-set StoreInLocalVariable = true;
rgCustomerBalance.AllowPaging = false; rgCustomerBalance.Rebind(); var result = CustomerData;// Restore grid back to normal (i.e. with paging) StoreInLocalVariable = false; rgCustomerBalance.AllowPaging = true; rgCustomerBalance.Rebind(); // Do something with Result} // Entity Data Source Selected protected void edsCustomerData_Selected(object sender, EntityDataSourceSelectedEventArgs e) { if (StoreInLocalVariable) { CustomerData = new Collection<CustomerData>(e.Results.Cast<CustomerData>().ToList()); } }