Hi ,
you can do this in many ways -
Solution1:
you can fetch only integer from any string using regular expression.
1.add this namespace
using System.Text.RegularExpressions;
2. Fetch only numeric value
string[] status = Regex.Split(gridview.cell[0].tostring(), @"\D+");
3.put this in you list
List<int> list = new List<int>();
list.Add(status[0]);
list.Add(status[0]);
list.Add(status[0]);
Solution2:
split your string where getting # ->
string abc = "aaa#12";
string[] cdf = abc.Split('#');
i have just given you idea using above you can solve your proble .:) happy coding dear :)