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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dropdowncalendarcontrol in grid

Thread ID:





71666 Feb 8,2008 07:25 PM UTC Feb 12,2008 11:41 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Tim Hatzenbeler
Asked On February 8, 2008 07:25 PM UTC

when inserting a new record via gridgrouping, how do I do a 'findcontrol(dropdowncalendar) to retrieve my date.

The findcontrol does not seem to be working for me..

Thanks, Tim

Administrator [Syncfusion]
Replied On February 12, 2008 11:41 AM UTC

Hi Tim,

Sorry for the delay in responding.

How do I do a 'findcontrol(dropdowncalendar) to retrieve my date?

You can use the below code snippet to retrieve the date :

protected void GridGroupingControl1_BarButtonItemClicked(object source, Syncfusion.Web.UI.WebControls.Grid.Grouping.ButtonBarItemClickEventArgs e)
if (this.GridGroupingControl1.TableDescriptor.FormEditMode != TableEditMode.UseTemplateForm && this.GridGroupingControl1.TableDescriptor.FormEditMode != TableEditMode.UseInlineTemplateForm)

if (e.ButtonBarItem.ButtonBarItemType == ButtonBarItemType.Save)
Record curRecord = this.GridGroupingControl1.FormEditCell.CurrentRecord;

TextBox tb = this.GridGroupingControl1.FormEditCell.FindControl("OrderID") as TextBox;
if (tb.Enabled)
curRecord.SetValue("OrderID", tb.Text);

tb = this.GridGroupingControl1.FormEditCell.FindControl("CustomerID") as TextBox;
curRecord.SetValue("CustomerID", tb.Text);

tb = this.GridGroupingControl1.FormEditCell.FindControl("OrderDate") as TextBox;
curRecord.SetValue("OrderDate", tb.Text);

e.Handled = true;


Also, Please refer the sample in the below link which illustrates the above:


Please try this and let me know if this helps.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon