Passing a value [modified]
-
Hi, I have an value bound to a column in a datagrid. I need to pass that value to a function. I thought this would easy for me. I used something like:
Dim e As DataGridItem ds = obj.getDetails(e.Cells(0).Text)
This would mean that it is trying to extract as a string OR convert the contents of the cell to string. I need the value to be extracted as an integer. Char to Integer conversions cannot happen. Please advise me if you can. Is there a straighforward way to extract the value of that cell?? Thank you. -- modified at 9:52 Wednesday 10th January, 2007 -
Hi, I have an value bound to a column in a datagrid. I need to pass that value to a function. I thought this would easy for me. I used something like:
Dim e As DataGridItem ds = obj.getDetails(e.Cells(0).Text)
This would mean that it is trying to extract as a string OR convert the contents of the cell to string. I need the value to be extracted as an integer. Char to Integer conversions cannot happen. Please advise me if you can. Is there a straighforward way to extract the value of that cell?? Thank you. -- modified at 9:52 Wednesday 10th January, 2007The table cell contains a string value, not a number. If you want the value as a number, you have to parse the string. If the value in the table cell comes from a numeric field in the data source, you have to read the value from the data source instead of from the table cell to get it in the original numeric form. When the value is put in the table cell it's convertered into a string value.
--- Year happy = new Year(2007);
-
The table cell contains a string value, not a number. If you want the value as a number, you have to parse the string. If the value in the table cell comes from a numeric field in the data source, you have to read the value from the data source instead of from the table cell to get it in the original numeric form. When the value is put in the table cell it's convertered into a string value.
--- Year happy = new Year(2007);