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.

SfDataGrid Row Level Editing Restrictions

Thread ID:

Created:

Updated:

Platform:

Replies:

118518 Mar 16,2015 05:48 AM Mar 24,2015 02:12 PM WPF 3
loading
Tags: SfDataGrid
MAHESH NARAYANAN V V
Asked On March 16, 2015 05:48 AM

Hi,
   do SfDataGrid Support Row Level AllowEdit which is decided by some conditions ? The requirement  is to allow edit for some columns for those rows which satisfies some condition
  (eg : AllowEdit="ProductPrice<1000"  )

Sivakumar R [Syncfusion]
Replied On March 17, 2015 02:25 AM

Hi Mahesh,

You can disable edit mode for particular cell/row based on condition by handling CurrentCellBeginEdit event. Find the Kb for the same below,
http://www.syncfusion.com/kb/2604/

Please let us know if you have any questions.

Thanks,
Sivakumar

MAHESH NARAYANAN V V
Replied On March 23, 2015 09:57 AM

Hi Sivakumar,

   Thanks for your reply. 

Your solution is working good for normal columns , but in case of checkbox column  the begin edit / RowSelection Change event is fired only after the value of the check box changed.  Can you please guide on this ?


Muthukumar Kalyanasundaram [Syncfusion]
Replied On March 24, 2015 02:12 PM

Hi Mahesh,

Thanks for the update.

We have analyzed your query. You can achieve your requirement by using ISEnabled property. We have prepare sample as per your need in the below attached sample.

Sample: WpfTestingSample_Checkbox.zip

Please let us know if you have any concerns.

Regards,

Muthukumar K


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.

;