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.
Unfortunately, activation email could not send to your email. Please try again.

Need Cell Type Value...

Thread ID:





44568 May 26,2006 11:01 AM May 27,2006 05:54 AM Windows Forms 1
Tags: GridControl
Sathish Chandran
Asked On May 26, 2006 11:01 AM

Hi, I''ve assigned a cell type for a respective column at the initialisation. eg. --- private void grdSecurityPrice_CellClick(object sender, GridCellClickEventArgs e) { if (e.MouseEventArgs.Button == MouseButtons.Right) { } } In the above cell click event of Grid I want get the Cell type value. Please help me out. Thanks & Regards, Sathish.

Administrator [Syncfusion]
Replied On May 27, 2006 05:54 AM

You can try code like: private void gridControl1_CellClick(object sender, GridCellClickEventArgs e) { String cellType = this.gridControl1[e.RowIndex, e.ColIndex].CellType; Type cellValueType = this.gridControl1[e.RowIndex, e.ColIndex].CellValueType; Console.WriteLine("cellType {0} cellValueType {1}", cellType, cellValueType); }


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.

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.