By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,972 Members | 1,454 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,972 IT Pros & Developers. It's quick & easy.

bind list<> to DataGridView

P: n/a
I need to display a list of ojects (containing few fields like name,
surname, adress) in a Grid, is it possible to directly bind the list of
objects with the DataGridView?
Thanks,
Diego
Apr 26 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Yes like this... IP.xml file is bind to this dataGridView1:

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
string filePath = "IP.xml";
ipDataset.ReadXml(filePath);
dataGridView1.DataSource = ipDataset;
dataGridView1.DataMember = "ip";
}

}

Hope it helps?
Jonte
"Diego" wrote:
I need to display a list of ojects (containing few fields like name,
surname, adress) in a Grid, is it possible to directly bind the list of
objects with the DataGridView?
Thanks,
Diego

Jun 2 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.