if (!string.IsNullOrEmpty(ticket))This gives a filter line that looks a lot like
{
filter = string.Format("Convert(ID,'System.String') like '%{0}%' ", ticket);
}
"Convert(ID, 'System.String') like %123%"
Which will show all rows where the column ID partially matches 123.
...
Bryan Valencia is a contributing editor and founder of Visual Studio Journey. He owns and operates Software Services, a web design and hosting company in Manteca, California.
1 comment:
Thank you very much! :)
Post a Comment