private void barEditItem1_EditValueChanged(object sender, EventArgs e) { //if (BsfGlobal.FindPermission("Followup Setup-Add") == false) //{ // MessageBox.Show("You don't have Rights to Followup Setup-Add"); // return; //} if (Convert.ToInt32(CommFun.IsNullCheck(barEditItem1.EditValue, CommFun.datatypes.vartypenumeric)) > 0) { RepositoryItemLookUpEdit cboCallType = barEditItem1.Edit as RepositoryItemLookUpEdit; DataRowView dr = cboCallType.GetDataSourceRowByKeyValue(barEditItem1.EditValue) as DataRowView;//editor.Properties.GetDataSourceRowByKeyValue(cboCallType.EditValue) as DataRowView; if (dr != null) { string sStr = dr["Type"].ToString(); m_sType = sStr.Substring(0, 1); getData(sStr.ToString()); } } else { m_sType = string.Empty; DGVTrans.DataSource = null; DGvTransView.Columns.Clear(); } }