How can I check whether a listview has text in a particular row?Is there a method like
if(istviewname.Items[row no].Text ==" ")
else if(istviewname.Items[row no].Text !=" ")
Can anyone help me?
Hello Lakshith you are most welcome on DANIWEB!
Of course there is a method! You've just wrtten it.
***> " " is text, it is a string containing one char: the space. Use "" or string.Empty here.
***> because you test for two opposite things you don't have to test them both. If one is true then the other is false.
well there are 15 columns in Access database like Amount1,Invoice no 1,Description1,Amount2,nvoice no 2,Description2...upto Amount5,Invoice no 5,Description5 .The maximum no fo rows i wnt 2 enter is therefore 5 and the minimum is 1.Error ocuurs when i want 2 enter rows in between 1 and 5 i.e when i enter only 2 rows or 3 or 4 or 5
Try to write decent English this becomes important in cases like this, where you are discussing row 2 to 5. (or should I say: row 2 2 5?)
In answering my question you mention something about columns, so I just pose my question again: How many rows are there in your listview?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...