Click here to Skip to main content
12,702,933 members (32,752 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP .NET Telerik
I am working with RadGrid.RadGrid fill by SqlDataSource But when i want Grid to be used only for Inserting new records and RadGrid data set is empty,the grid is not visible,only a single line appears in the web page
Please help me
Thanks
<telerik:RadGrid ID="RadGrid3"   runat="server"   AutoGenerateEditColumn="True" ShowFooter="true"
            GridLines="None" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
        AllowAutomaticInserts="True"    OnItemDeleted="RadGrid2_ItemDeleted"
        OnItemInserted="RadGrid2_ItemInserted" 
        OnItemUpdated="RadGrid2_ItemUpdated" AutoGenerateDeleteColumn="True" 
        Skin="Office2007" 
        AllowSorting="True" AutoGenerateColumns="False"
        ShowStatusBar="True" onitemcommand="RadGrid3_ItemCommand" 
      
        oninsertcommand="RadGrid3_InsertCommand" 
        onitemdatabound="RadGrid3_ItemDataBound" 
        onselectedindexchanged="RadGrid3_SelectedIndexChanged" 
        ondatabound="RadGrid3_DataBound" onupdatecommand="RadGrid3_UpdateCommand" onneeddatasource="RadGrid3_NeedDataSource" 
            DataSourceID="SqlDataSource3" Enabled="False" 
               öndatabinding="RadGrid3_DataBinding">
        <ClientSettings EnablePostBackOnRowClick="True">
               
            <Selecting AllowRowSelect="True" />
             <ClientEvents  önRowDblClick="RowDblClick"></ClientEvents>
Posted 9-Dec-12 0:12am
zsh64960
Updated 9-Dec-12 0:20am
v2
Comments
Krunal Rohit 9-Dec-12 5:13am
   
provide your code ..

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

U should use OnNeedDatasourse event and write the code to fill your grid from SQL inside the event.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100