oleDbDataAdapter/DataSet - data to ListView.

  • Thread starter Thread starter Przemek
  • Start date Start date
P

Przemek

Hi.
1. Have u got any solution to add data from DataSet or oleDbDataAdapter to
ListView control, with no adding row after row but complex (big part of
data) like with DataGrid control?

2. How can I add row after row from DataSet?
3. Is reader make read operation with SQL statement, to take row after row
in real time operating on DB file? Or it is buffering data somewhere?
Thanks, for wrote.
 
1. The ListView control does not support DataBinding, so you will have
to add data row after row only.

2.

foreach(DataRow row in ds.Rows)
{
ListViewItem item = new ListViewItem();
item.Text = row[0];
item.SubItems.Add(row[1]);
 
Back
Top