dgGrid.ItemsSource = null; dgGrid.ItemsSource = objPatientAdvanceList; if (this.IsFromRental == true) { if (objPatientAdvanceList != null && objPatientAdvanceList.Count > 0) { dgGrid.SelectedItem = objPatientAdvanceList[0]; foreach (clsClass item in (List<clsclass>)dgGrid.ItemsSource) { if (dgGrid.SelectedItem != null) { if (ItemNetAmount > 0 && ((clsClass)dgGrid.SelectedItem).ID == item.ID && Convert.ToDouble(TxtpaidAmt.Text) != 0) { ((clsClass)dgGrid.SelectedItem).Used = Math.Round(Convert.ToDouble(txtAmt.Text), 0); ((clsClass)dgGrid.SelectedItem).checkAdvance = true; chkAddPatientAdvance_Click(((CheckBox)dgGrid.Columns[5].GetCellContent(item)), null); break; } } else item.checkPatientAdvance = false; } } }
((CheckBox)dgGrid.Columns[5].GetCellContent(item))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)