I have the following code in my module identifying each column's UniqueName based on their DataField property. The FindByDataFieldSafe function strangely isn't able to identify TemplateColumns and would return Nothing.
However, if I run the following statement during debugging, using the FindUniqueNameSafe function instead, I'm able to return the value.
Thanks for all the help.
Protected Function GetGridValues(ByVal rgdGrid As RadGrid, _ |
ByVal grdEditableItem As GridEditableItem, _ |
Optional ByVal blnValidateData As Boolean = True) As String |
Dim hshRowData As New Hashtable |
rgdGrid.MasterTableView.ExtractValuesFromItem(hshRowData, grdEditableItem) |
For Each strField In hshRowData.Keys |
xmleField = xmldData.CreateElement(strField) |
If Not rgdGrid.Columns.FindByDataFieldSafe(strField) Is Nothing Then |
strColUniqueName = rgdGrid.Columns.FindByDataFieldSafe(strField).UniqueName |
However, if I run the following statement during debugging, using the FindUniqueNameSafe function instead, I'm able to return the value.
?cObj(rgdGrid.Columns.FindByUniqueNameSafe("colINDCUR")).DataFieldWhat is wrong here?
"INDCUR" {String}
String: "INDCUR"
Thanks for all the help.