We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

User control problem

Thread ID:

Created:

Updated:

Platform:

Replies:

74816 Jun 30,2008 04:26 AM Jul 6,2008 05:24 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Kallyani Lanje
Asked On June 30, 2008 04:26 AM

Hi
I created ASP.NET Usercontrol using GridGroupingControl. How can I access or call manuall in my calling page.
Example:
Default.aspx page will access usercontrol and assign datasource as well.

Kindly provide me some example on this.

Thank you



Rajarajeswari S [Syncfusion]
Replied On July 6, 2008 05:24 AM

Hi,

Sorry for the delay in responding you.

We have to access the GridGroupingControl from the access page and then only we can use it. Please refer the below code snippet which illustraates this:

GridControl.ascx:

$script runat="server">
public GridGroupingControl GroupingGrid
{
get
{
return this.GridGroupingControl1;
}
}
$/script>

$sfwg:GridGroupingControl ID="GridGroupingControl1" runat="server" DataSourceCachingMode="ViewState" DataMember="DefaultView" AutoFormat="Office 2003 Blue" BorderCollapse="Separate">
$/sfwg:GridGroupingControl>

CallingPage.aspx:
$%@ Register src="GridControl.ascx" tagname="GridControl" tagprefix="uc1" %>

$uc1:GridControl ID="GridControl4" runat="server">$/uc1:GridControl>

CallingPage.aspx.cs:

this.GridControl4.GroupingGrid.DataSource=dt;

Note:
"$" is used instead of "<".

Please refer the sample from the below link, which illustrates the above:

http://www.syncfusion.com/support/user/uploads/UserControl_76d3f8e7.zip

Please let me know if you have any other concerns.

Regards,
Raji


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;