Hi im using entity framework to bind the datasource of a RadGridView
rgvResguardos its a DataGridView and the result of the linq to entities its being given as datasource to it. i enabled Ading and enabled Editing on rgvResguardos but when i run my app it displays data but it doesnt allow me to add new rows nor editing or deleteing.
is there any way to enable this options? i know i have to take care of inserting, deleteing and updating info on the database.
private void cmbUsers_SelectedValueChanged(object sender, EventArgs e) { cmbUsers.ValueMember = "Id"; var resguardos = from e1 in context.tblBienes where e1.IdResponsable == (long)cmbUsuarios.SelectedValue select new { Id = e1.IdBien, Descripcion = e1.descripcion, Estado = e1.estado, Placa_Anterior = e1.placaAnterior, Placa_Nueva = e1.placaNueva, Ubicacion = e1.ubicacion, Fecha_De_Asignacion = e1.fechaAsignacion, Etiqueta = e1.etiqueta, Procuraduria = context.tblProcuradurias.Where(e2 => (e2.IdProcuraduria == (long)cmbProcuradurias.SelectedValue)).Select((e2 => e2.ciudad)).FirstOrDefault() }; rgvResguardos.DataSource = resguardos; }rgvResguardos its a DataGridView and the result of the linq to entities its being given as datasource to it. i enabled Ading and enabled Editing on rgvResguardos but when i run my app it displays data but it doesnt allow me to add new rows nor editing or deleteing.
is there any way to enable this options? i know i have to take care of inserting, deleteing and updating info on the database.