<telerik:RadGrid ID="dgAddCart" runat="server" AllowPaging="True" PageSize ="15" DataSourceID="SqlDataSource1"
GridLines="None" Skin="Black" HeaderStyle-Font-Bold ="true" >
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="335px" />
<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false"
ClipCellContentOnResize="true" />
</ClientSettings>
<telerik:GridBoundColumn DataField="Proposal_ID" HeaderText="Proposals"
SortExpression="Proposal_ID" UniqueName="Proposal_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstTrials" DataType="System.Int32" FooterText="Total : " Aggregate = "Sum"
HeaderText="Trials" SortExpression="EstTrials" UniqueName="Trials :">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstCost" DataType="System.Decimal" Aggregate="Sum"
DataFormatString ="{0:c}" HeaderText="Cost" SortExpression="EstCost" UniqueName="Cost :">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CropName" HeaderText="CropName" Display = "false"
SortExpression="CropName" UniqueName="CropName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProdName" HeaderText="ProdName" Display = "false"
SortExpression="ProdName" UniqueName="ProdName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TerritoryName" HeaderText="TerritoryName" Display = "false"
ReadOnly="True" SortExpression="TerritoryName" UniqueName="TerritoryName">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ButtonType ="ImageButton" ImageUrl ="images/Delete.gif" HeaderText ="Remove">
</telerik:GridButtonColumn>
<GroupByExpressions >
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName ="ProdName"
HeaderText ="Product"
HeaderValueSeparator = " : " />
</SelectFields>
<GroupByFields >
<telerik:GridGroupByField FieldName ="ProdName" />
<telerik:GridGroupByField FieldName ="TerritoryName" />
<telerik:GridGroupByField FieldName ="CropName" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
</mastertableview>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:GowanKB2ConnectionString %>"
SelectCommand="SELECT [Proposal_ID], [EstTrials], [EstCost], [CropName], [ProdName], [TerritoryName] FROM [QryProposalGrpWithPests]"
ProviderName="<%$ ConnectionStrings:DevProviderName %>">
</asp:SqlDataSource>
How to set this propery throught code behind. Its very urgent help me ?
I am most thankfull Princey
Thanks
Regards
Rahul Mahajan
GridLines="None" Skin="Black" HeaderStyle-Font-Bold ="true" >
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="335px" />
<Resizing AllowColumnResize="true" AllowRowResize="false" ResizeGridOnColumnResize="false"
ClipCellContentOnResize="true" />
</ClientSettings>
<telerik:GridBoundColumn DataField="Proposal_ID" HeaderText="Proposals"
SortExpression="Proposal_ID" UniqueName="Proposal_ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstTrials" DataType="System.Int32" FooterText="Total : " Aggregate = "Sum"
HeaderText="Trials" SortExpression="EstTrials" UniqueName="Trials :">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="EstCost" DataType="System.Decimal" Aggregate="Sum"
DataFormatString ="{0:c}" HeaderText="Cost" SortExpression="EstCost" UniqueName="Cost :">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="CropName" HeaderText="CropName" Display = "false"
SortExpression="CropName" UniqueName="CropName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProdName" HeaderText="ProdName" Display = "false"
SortExpression="ProdName" UniqueName="ProdName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TerritoryName" HeaderText="TerritoryName" Display = "false"
ReadOnly="True" SortExpression="TerritoryName" UniqueName="TerritoryName">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ButtonType ="ImageButton" ImageUrl ="images/Delete.gif" HeaderText ="Remove">
</telerik:GridButtonColumn>
<GroupByExpressions >
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldName ="ProdName"
HeaderText ="Product"
HeaderValueSeparator = " : " />
</SelectFields>
<GroupByFields >
<telerik:GridGroupByField FieldName ="ProdName" />
<telerik:GridGroupByField FieldName ="TerritoryName" />
<telerik:GridGroupByField FieldName ="CropName" />
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
</mastertableview>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:GowanKB2ConnectionString %>"
SelectCommand="SELECT [Proposal_ID], [EstTrials], [EstCost], [CropName], [ProdName], [TerritoryName] FROM [QryProposalGrpWithPests]"
ProviderName="<%$ ConnectionStrings:DevProviderName %>">
</asp:SqlDataSource>
How to set this propery throught code behind. Its very urgent help me ?
I am most thankfull Princey
Thanks
Regards
Rahul Mahajan