User Profile & Activity

Jammy Mad Member

Hi,

 

// We are using .NET 4.0 Entity Framework.
// in the example below, searchResult is a DataTable with the bound columns for WGResults (Intersoft Web Grid)
// We dynamically add the column to WGResult and assign it a data source.

 

WGResults.DataSource = searchResults;
WGResults.DataBind();

 

<ISWebGrid:WebGrid ID="WGResults" runat="server" Height="500px" UseDefaultStyle="True"
      Width="600px" DefaultStyleMode="Win7">
      <LayoutSettings GridLines="Vertical" AllowColumnFreezing="Yes"
            AllowExport="Yes" AllowFilter="Yes" AllowSelectColumns="Yes"
            PagingMode="ClassicPaging" PagingSize="50" AllowSorting="Yes">
           <ClientSideEvents OnRowContextMenu="WebGrid_OnRowContextMenu"></ClientSideEvents>
       </LayoutSettings>
</ISWebGrid:WebGrid>

 

Thanks,

JammyMad

Hi,

 

What do you exactly mean by Unbound Webgrid? we assign it as datasource then we databind it.

Thanks,

JammyMad

All times are GMT -5. The time now is 3:24 AM.
Previous Next