This is a migrated thread and some comments may be shown as answers.

Grid

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neelima
Top achievements
Rank 1
Neelima asked on 22 Oct 2010, 10:10 PM
Hello

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>

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Oct 2010, 05:47 AM
Hello Neelima,

In RadGrid a blank cell would have a space and that is interpreted as &nbsp;(non-breaking space). Thats why the cell is returning '&nbsp;' when it is blank.

Hope this information helps,
Princy.
Tags
Grid
Asked by
Neelima
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or