Please post code containing the declaration of the DataGridView, the loading of its data, and the methods you've created to handle the event(s). That should help get a clearer picture of what might be hanging you up.
kaddim
Posts
-
DataTable Click Event -
Performance QuestionYou're using tTemp.Substring(tTemp.IndexOf("=") + 1 multiple times in each block. If you defined your search strings as constants, you could skip this. For example: private const DATABASEHOST_ARG As String = "DATABASEHOST=" ... If tTemp.IndexOf(DATABASEHOST_ARG) > 0 Then myConnectionInfo.tDatabaseHost = tTemp.Substring(DATABASEHOST_ARG.Length(), _ (tTemp.Length - DATABASEHOST_ARG.Length()) End If I didn't compile, so formatting may be off - and make sure you check to see that I've got the Substring starting index correct. I'm pretty sure that the '+ 1' is no longer necessary. Simply rinse and repeat for your other blocks and your helpful compiler should replace a lot of "IndexOf" operations with simple math!
-
How To Solve This ? start wtih numeric ValuePerhaps if you communicated to your client some more concrete examples... There are legitimate addresses that don't start with a number. Private roads sometimes are used Waverly Place Anytown, XX, 12345 Sometimes people spell out numbers as well: One Rockefeller Plaza Some begin with directions: West 106 Broadway As long as you're dealing with a small, known pool of addresses, you'll be OK. However, if you're soliciting general address input, I'd stay away from this rule. Just my 2 cents... Good luck!