Seperators in DataGridView

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 16
Reputation: spinnaret is an unknown quantity at this point 
Solved Threads: 1
spinnaret spinnaret is offline Offline
Newbie Poster

Seperators in DataGridView

 
0
  #1
Oct 28th, 2008
I have a datagridview on a form I want to conditionally insert a seperator between rows.

  1. For iRow = 1 To dgvUserlist.rowcount
  2.  
  3. If dgvUSERLIST.Item("USER", iRow).Value <> dgvUserlist.Item("USER", iRow - 1).Value Then
  4. dgvUserlist.Rows.Add(iRow)
  5.  
  6. [b] DO STUFF HERE[ /B]
  7.  
  8. End If
  9.  
  10. Next
So I want to compare the value of the users column with the one above it and insert a seperator.

Anyone have any thoughts?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC