Hi
I’m very new with the telerik, I’m trying to find a control from radGridview.I implements in .Net Grid control ( sample code is given below) But I cant do the same in radGridView. Can anyone give me any idea to implement this in radGridview. I need your help.
Code snippets:
foreach (GridViewRow row in dgrdInbox.Rows)
{
CheckBox cbBox = (CheckBox)row.FindControl("cbYesNo");
if (cbYesOrNo.Checked)
{
// Do something
}
else
{
// Do something
}
}
Thanks in advanced.
Md. Marufuzzaman
| private void radGridHome_RowsChanged(object sender, GridViewCollectionChangedEventArgs e) |
| { |
| try |
| { |
| if (isGridLoadCompleted) |
| { |
| isRowsChanged = true; |
| //Getting the edited rows index |
| previousRowIndex = e.NewStartingIndex; |
| if (!arrRowChangedIndex.Contains(e.NewStartingIndex)) |
| { |
| arrRowChangedIndex.Add(e.NewStartingIndex); |
| } |
| Console.WriteLine("RowsChanged @ " + e.NewStartingIndex + e.OldStartingIndex + " "); |
| } |
| } |
| catch (Exception ex) |
| { |
| WriteLogFile(ex.ToString(), "radGridHome_RowsChanged"); |
| } |
| } |
| private void radGridHome_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e) |
| { |
| try |
| { |
| if (isGridLoadCompleted && isRowsChanged && chkSaveExitingRow.Checked) |
| { |
| // Updating the edited row details to datatbase |
| UpdateCustomerOrderInfo(chkSaveExitingRow.Checked, false, previousRowIndex); |
| isRowsChanged = false; |
| } |
| arrPastRowValue.RemoveRange(0, arrPastRowValue.Count); |
| } |
| catch (Exception ex) |
| { |
| WriteLogFile(ex.ToString(), "radGridHome_CurrentRowChanged"); |
| } |
| } |
MasterGridViewTemplate.AddNewRowPosition =
PinnedRowPosition.Top, then the Value changing event does not fire. It fires only if it is set to bottom... Please advise
Thanks
Deepak