
22/01/2009, 12:16
|
| | Fecha de Ingreso: enero-2009
Mensajes: 10
Antigüedad: 16 años, 1 mes Puntos: 0 | |
Respuesta: Mostrar datos desde un ComboBox haber compa aqui te paso todo el codigo y dime que tengo mal
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace bd2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
this.oleDbDataAdapter1.Fill(this.bdDataSet1);
//this.oleDbDataAdapter1.Fill(this.bdDataSet1);
}
private void btnSave_Click(object sender, EventArgs e)
{
this.Validate();
this.nombreBindingSource.EndEdit();
this.oleDbDataAdapter1.Update(this.bdDataSet1);
MessageBox.Show("Actualizado");
}
private void btnNew_Click(object sender, EventArgs e)
{
this.nombreBindingSource.AddNew();
}
private void btnDelete_Click(object sender, EventArgs e)
{
bdDataSet1.Tables["Nombre"].Rows[aux].Delete();
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
aux = this.dataGridView1.SelectedCells[0].RowIndex;
}
}
}
Dime que me falto aqui |