Skip to content

Search in DataGridView (without database or query binded)

Hadi Muhammadi

Hadi Muhammadi

Asked Aug 28, 2015, 3:27 PM EDT1 answer
Share
LinkedInX
Good day;
i want to add row in blank DataGridView by DataTable, this adding should follow 1 rule (in pseudo code)::
"IF item before added, update 'Number' cell by refrenced TextBox (DataGridView Cell's: FName, LName, Number)
ELSE add new row" 
 
 
but there are two problems:
1. first row could not be added by below code (no error). (first row should be add by another button or default value)
2. Compare to find a existent row similar to the row being added, played only the first row of the DataGridView.
 
my code: attached
Please help me by code

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 1 short reply
    • Hadi Muhammadi
      0
      Thank's for answering....
      0