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.

Editable grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

67634 Aug 25,2007 10:19 AM Aug 21,2018 04:48 AM Windows Forms 3
loading
Tags: GridControl
prabhjeet
Asked On August 25, 2007 10:19 AM

hi,

I have some queries regarding grid grouping control..

1) In my application i when i single click on grid grouping cell then it becomes editable but i want that instead of single click when i double click the cell should be editable..

2) by default all cells are editable in grid grouping control...i want make some cells editable and some non editable.....

3) When i bind "data time" to grid grouping control...it displays date time in editable callender......i don't want to create editable callender...just display the date time in normal cell...

4) in my application my grid gets refreshed after every one second...now when i am editing something the focus of edit cell changes and i am not able to edit my grid...i cannot stop the data reciving at my grid...so kindly help how to edit grid in above situation...

i will be v thankfull if anyone could help me in all my above queries...

Rajagopal [Syncfusion]
Replied On August 27, 2007 08:43 PM

Hi Prabhjeet,

Thanks for your interest in Syncfusion Products.

1. To edit grid cells only on double click, set the below property setting to do this.

this.gridGroupingControl1.TableModel.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;

2. To make certain cells not editable or readonly, handle the QueryCellStyleInfo event of the grid and set the readonly to true to the cells you wanted.

3. To just have the datetime information on a datetime cell, then hide the dropdown from showing up by setting the ShowButtons property of the style object for the datetime cells

this.gridGroupingControl1.TableDescriptor.Columns["DateTime"].Appearance.AnyRecordFieldCell.ShowButtons = GridShowButtons.Hide;

4. To continue editing in a cell when refresh happens on grid, get the EditState of the current key pressed in the TableControlCurrentCellKeyPress and set the EditState for the cell after setting the ControlText for the cell.

Please refer the below sample demonstrates the above features.
http://websamples.syncfusion.com/samples/Grid.Windows/F67634/main.htm

Let me know if you have any other questions.

Have a nice time.
Regards,
Rajagopal

Nagaraju Dhulipalla
Replied On August 20, 2018 07:24 AM

by default all cells are non editable in grid grouping control in my code

How can I make them editable?

Arulraj A [Syncfusion]
Replied On August 21, 2018 04:48 AM

Hi Nagaraju, 

Thanks for contacting Syncfusion support. 

By default, all cells are editable in GridGroupingControl. The GridGroupingControl will be non-editable if you use any of the following settings, 

ReadOnly property 
//Sets read only to whole grid 
this.gridGroupingControl1.TableModel.ReadOnly = true; 

Or 

//Sets read only to the record field cells 
this.gridGroupingControl1.TableDescriptor.Appearance.RecordFieldCell.ReadOnly = true; 
 
BrowseOnly property 
this.gridGroupingControl1.BrowseOnly = true; 
 
Could you ensure whether you have used any of the above properties? If yes, please set the corresponding property to false”. If still the grid behaves as non-editable, then please share the code you are using with respect to GridGroupingControl. So that we can look into it and provide a prompt solution as early as possible. 

Arulraj A 


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.

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.

;