dgClient.Columns.Add("client", "Client") dgClient.Columns("client").Width = 150 dgClient.Columns.Add("comments","Comments") dgClient.Columns("comments").Width = 250 Dim i As IntegerFor i = 0 To dsClient.Tables("TableClient").Rows.Count - 1 dgClient.Rows.Add() dgClient.Rows(i).Cells("client").Value = dsClient.Tables("TableClient").Rows(i).Item("Client") dgClient.Rows(i).Cells("comments").Value = dsClient.Tables("TableClient").Rows(i).Item("Comments") Next dgClient.Columns.Add("client", "Client") dgClient.Columns("client").Width = 150 dgClient.Columns.Add("comments", "Comments") dgClient.Columns("comments").Width = 250 Dim i As Integer For i = 0 To dsClient.Tables("TableClient").Rows.Count - 1 dgClient.Rows.Add() dgClient.Rows(i).Cells("client").Value = dsClient.Tables("TableClient").Rows(i).Item("Client") dgClient.Rows(i).Cells("comments").Value = dsClient.Tables("TableClient").Rows(i).Item("Comments") Next
For i = 0 To frm.dgvDetail.Rows.Count - 1 For j = 0 To frm.dgvDetail.Columns.Count - 1 frm.dgvDetail.Item(frm.dgvDetail.Columns(j).Name, i).Value = dsCOA.Tables("tblFind").Rows(i)(frm.dgvDetail.Columns(j).Name) Next Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)