Saturday, January 29, 2011

Edit List view control in WPF

Consider the following Class.Mind it that you have to bind the class in list view property.

EPromotion objPromotion =new EPromotion();
objPromotion.EmployeeId = Convert.ToInt64(employeeIdTextBox.Text);
objPromotion.EmployeeName = employeeNameTextBox.Text;
List<EPromotion> liPromotion = new List<EPromotion>();
objPromotion.listPromotion = liPromotion;

/******** ADD ******/

/*** Selected EDIT *****/

EPromotion selectedPromotion = (EPromotion)this.promotionlistView.SelectedItem;

/***** Selected remove *******/

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link.