I'm doing a window that shows the list of installed printers. But instead of showing the name of the printer, it shows the length of this. The code is as follows:
public partial class frmPrinters : Form
{
public BindingList<string> Impresoras = new BindingList<string>();
public frmPrinters()
{
InitializeComponent();
}
private void frmPrinters_Load(object sender, EventArgs e)
{
BindingSource bindSource = new BindingSource();
for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++)
{
Impresoras.Add(PrinterSettings.InstalledPrinters[i]);
}
bindSource.DataSource = Impresoras;
grdPrinters.DataSource = bindSource;
}
private void btnCerrar_Click(object sender, EventArgs e)
{
Close();
}
}