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

row Data Bound in GridGruping

Thread ID:

Created:

Updated:

Platform:

Replies:

90192 Sep 21,2009 06:50 PM UTC Sep 25,2009 06:31 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
RODRIGO QUIJANO
Asked On September 21, 2009 06:50 PM UTC


Hello.

I'm trying to assign values to a DropDownList inside a RowDataBound GridGruping meted THROUGH of the grid, as this is the way I do in the normal Grids ASP. But in trying to run the code tells me not find the component. Please upon request at help. Post code section where I try to do the assignment.

protected void grid_Vencimientos_RowDataBound(object sender, RowDataBoundEventArgs e)
{
if (grid_Vencimientos.Table.Records.Count > 0)
{
DropDownList ddl = (DropDownList)e.Row.FindControl("drop_Asignado");
ddl.SelectedIndex = ddl.Items.IndexOf(ddl.Items.FindByValue(ddl.ToolTip));
}
}


Gowri Manohari D [Syncfusion]
Replied On September 25, 2009 06:31 AM UTC

Hi Rodrigo,

Thank you for choosing Syncfusion Products.

I have created sample that illustrates changing the value of the cell dropdown on each grid row bound.

Please download the sample from below link.
http://files.syncfusion.com/support/GGC.Web/7.3.0.20/F90192/main.htm

Sample Illustrates

-Finding the cell DropDownList in RowDataBound event.
-We have to check whether the column is ColumnDescriptor,the
name of the column etc.
-Based on the above we can get the cell DropDownList of the grid

Please have a look at the above sample and let me know if this helps you out.


Regards,
Gowri





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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;