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. Image for the cookie policy date
close icon

row Data Bound in GridGruping


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));
}
}


1 Reply

GM Gowri Manohari D Syncfusion Team 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





Loader.
Live Chat Icon For mobile
Up arrow icon