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

[Solved] rad grid databinding

1 Answer 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Balan
Top achievements
Rank 1
Balan asked on 19 May 2008, 01:39 PM
Hello !

 I try to display into a radGrid some fields from a table. It works only with aspGridView... I suppose that I make some mistakes. Here is my code :

<telerik:RadGrid ID="rgBookingTables" runat="server" AllowPaging="true"
                AllowSorting="true" AutoGenerateColumns="false" PageSize="15" Skin="Web20">
                    <MasterTableView DataKeyNames="BookingID">
                        <DetailTables>
                            <telerik:GridTableView runat="server">
                                <Columns>
                                    <telerik:GridBoundColumn HeaderText="Booking no" DataField="BookingID" Visible="true" ReadOnly="true"></telerik:GridBoundColumn>
                                </Columns>
                            </telerik:GridTableView>
                        </DetailTables>
                    </MasterTableView>
                </telerik:RadGrid>

 rgBookingTables.DataSource = db.BookingTables;
        rgBookingTables.DataBind();


Thanks !

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2008, 04:35 AM
Hi,

Go through the following demo links to get more details about binding the RadGrid.

Simple data-binding
Advanced data-binding

Hope this helps..
Shinu.
Tags
Grid
Asked by
Balan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or