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

Button in a grid view

Thread ID:





98749 Mar 25,2011 10:04 AM UTC Apr 5,2011 05:59 AM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
Adrian Hedley
Asked On March 25, 2011 10:04 AM UTC

Can you please instruct me how I can add another column in the gridcontrol and then add a button in the column which will give the possibility to execute a popup window?


Ranjithkumar R G [Syncfusion]
Replied On March 25, 2011 11:42 AM UTC

Hi Malcolm,

Thanks for using Syncfusion products.

Your requirement of opening a pop up window by clicking a button in the GridControl can be achieved by adding Button Control inside Item Template.By Clicking the Button we can pop up the Window Control. Please refer to the code snippet below.



protected void btn_click(object sender, EventArgs e)

Button b = sender as Button;
GridCell gc = b.Parent.Parent as GridCell;
GridRow gr = gc.Row;
Window1.InitiallyShown = true;

Please refer to the below link to download the sample application.


Let me know if you need further assistance.


Adrian Hedley
Replied On March 30, 2011 09:08 AM UTC

Its ok as you said but then I need to make the button click event as it is keep getting this error.

Line 199:
Line 200: Line 201: UseSubmitBehavior="false" />
Line 202:

Can you help me to solve this problem??

Thanks and lot for your patience :)

Ranjithkumar R G [Syncfusion]
Replied On April 5, 2011 05:59 AM UTC

Hi Malcolm,

Thanks for using Syncfusion products.

We are sorry for inconvenience caused. We are unable to reproduce the issue. We have prepared a simple sample, video demonstrating the working of the sample and the same can be downloaded from the following links.


Could you please try the above sample and get back to us whether you are able to reproduce the issue? If not, could you please give more information or by reproducing the issue in the above sample so that we could sort out the issue and provide you with solution.The information provided would be of great help in resolving the issue.

Please let us know if you need further assistance.



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