Nonheandyhype
New Member
I have a page with a nested Gridview where I'm trying to fill the inner grid by pulling a string value from each line of the outer grid. When I try to pass the value from the outer grid to the string variable I get the "Error when converting 'String' to 'System.IFormatProvider'" error. I'm using the following code to store the gridview cell value to the variable:\[code\] Dim Svc_Name As String = grdOuterGridView.DataKeyNames(e.Row.RowIndex).ToString("THIRD_PARTY_SERVICE")\[/code\]Can anyone tell me what I'm doing wrong here? Thanks.