K
Kenneth H. Young
How does one get the values of multiple selected rows in a DataGrid? I
am trying to allow the builing of an email list generated from an LDAP
query. The below code works OK but it can create duplicates if a line item
is clicked more that once.
Private Sub DataGrid1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.Click
Dim curCell, systemDirectory, mList, writeL As String
systemDirectory = System.Environment.SystemDirectory & "\"
mList = systemDirectory & "mailList.txt"
curCell = DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 3) '3 is the email
column.
DataGrid1.CurrentCell.Equals(curCell)
Dim writeE As System.IO.TextWriter
FileOpen(1, mList, OpenMode.Append)
WriteLine(1, curCell)
FileClose(1)
End Sub
Thanks for the help
Kenneth H. Young
am trying to allow the builing of an email list generated from an LDAP
query. The below code works OK but it can create duplicates if a line item
is clicked more that once.
Private Sub DataGrid1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.Click
Dim curCell, systemDirectory, mList, writeL As String
systemDirectory = System.Environment.SystemDirectory & "\"
mList = systemDirectory & "mailList.txt"
curCell = DataGrid1.Item(DataGrid1.CurrentCell.RowNumber, 3) '3 is the email
column.
DataGrid1.CurrentCell.Equals(curCell)
Dim writeE As System.IO.TextWriter
FileOpen(1, mList, OpenMode.Append)
WriteLine(1, curCell)
FileClose(1)
End Sub
Thanks for the help
Kenneth H. Young