Relevant code:
The column is being displayed only for debugging purposes, so I can verify that yes, it is being populated with the correct data. When I run this, Int32.Parse throws a FormatException because the string being passed to it is " ". I have not been able to figure out why this is.
ASP: |
<telerik:GridBoundColumn DataField="TaskKey" UniqueName="colTaskKey" ReadOnly="true" Display="true" /> |
C#: |
protected void grdAssign_UpdateCommand(object sender, GridCommandEventArgs e) |
{ |
GridDataItem item = (GridDataItem)e.Item; |
int taskKey = Int32.Parse(item["colTaskKey"].Text); |
The column is being displayed only for debugging purposes, so I can verify that yes, it is being populated with the correct data. When I run this, Int32.Parse throws a FormatException because the string being passed to it is " ". I have not been able to figure out why this is.