Hello
I'm trying to access GridBoundColumns data. It is returning ' ' when that cell is blank. Is something wrong in the code?
Thanks
Neelima
I'm trying to access GridBoundColumns data. It is returning ' ' when that cell is blank. Is something wrong in the code?
Thanks
Neelima
Private
Sub
RadgridDestination_SelectedIndexChanged(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
RadgridDestination.SelectedIndexChanged
Dim
row
As
GridDataItem = RadgridDestination.Items(RadgridDestination.SelectedIndexes(0))
With
uc_Addr
'uc_Addr is a UserControl
.Addr2 = row(
"Address2"
).Text ' here .Addr2 = when Address2 columnis blank
End
With
End
Sub
<
telerik:RadGrid
ID
=
"RadgridDestination"
runat
=
"server"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
AutoGenerateColumns
=
"False"
Skin
=
"Sunset"
AllowPaging
=
"True"
GridLines
=
"None"
>
<
GroupingSettings
ShowUnGroupButton
=
"True"
/>
<
ClientSettings
AllowDragToGroup
=
"True"
allowcolumnsreorder
=
"True"
columnsreordermethod
=
"Reorder"
reordercolumnsonclient
=
"True"
>
</
ClientSettings
>
<
MasterTableView
EditMode
=
"InPlace"
DataKeyNames
=
"Destination_ID"
GroupLoadMode
=
"Client"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Addr2"
HeaderText
=
"Address2"
UniqueName
=
"Address2"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
'
'
'
'
'
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>