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

adding OpenFiledialog to a specific cell of GridGroupingControl

Thread ID:





76596 Sep 16,2008 09:28 AM UTC Sep 18,2008 05:26 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On September 16, 2008 09:28 AM UTC

I am using GridGroupingControl of Syncfusion version datasource is DataTable.I want only one cell(not the entire column) of the GridGroupingControl to host a button for OpenFileDialog(or any custom control).Please provide me a sample application/code snippet for the same.

Hope to see a reply from you soon.

SubhaSheela R [Syncfusion]
Replied On September 18, 2008 05:26 AM UTC

Hi Keshav,

Thanks for your interest in Syncfusion products.

You can have push button in a cell and open a dialog by clicking that by handling QueryCellStyleInfo and PushButtonClick events of the GridGrouping Control.

Here is the code:

void TableControl_PushButtonClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellPushButtonClickEventArgs e)
string filename;
if(e.ColIndex == 2 && e.RowIndex == 7)
if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
filename = this.openFileDialog1.FileName;

Here is the sample:


Please let me know if this does not serve your need.

Subhasheela R


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