Hello everyone,
Can anyone please show me how to find substring in dataview/datagrid? Basically, a column contains bunch of phone numbers
410-555-1212
410-379-2215
410-443-5214
410-555-2351
410-555-5623
410-895-8951
After sorting-
410-379-2215
410-443-5214
410-555-1212
410-555-2351
410-555-5623
410-895-8951
I want to find all phone numbers starting string with like "410-555" and select the first occurence. I don't want to use RowFilter. I want to able to maintain the whole phone list. I have tried dv.Find("Like '410-555%'" and some other ways, but it doesn't work. I think my Find syntax is incorrect. Can anyone help me with this?
Thanks
btran
Can anyone please show me how to find substring in dataview/datagrid? Basically, a column contains bunch of phone numbers
410-555-1212
410-379-2215
410-443-5214
410-555-2351
410-555-5623
410-895-8951
After sorting-
410-379-2215
410-443-5214
410-555-1212
410-555-2351
410-555-5623
410-895-8951
I want to find all phone numbers starting string with like "410-555" and select the first occurence. I don't want to use RowFilter. I want to able to maintain the whole phone list. I have tried dv.Find("Like '410-555%'" and some other ways, but it doesn't work. I think my Find syntax is incorrect. Can anyone help me with this?
Thanks
btran