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.

GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

98426 Feb 27,2011 08:30 AM Mar 4,2011 01:58 AM ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
Mohammed Eid
Asked On February 27, 2011 08:30 AM

hi,

I have a GridDataControl

I want to make 10 rows of all rows to be ReadOnly, that can't be changed or edited.

how can I do that?


Manikandan [Syncfusion]
Replied On March 1, 2011 09:30 AM

Hi Mohammed,

Thanks for using Syncfusion Products.

Yes, You can set the all rows of GridDataControl as ReadOnly. You can achieve this by setting AllowEdit property of GridDataControl to False. We have prepared a sample based on this. Please find the sample in the attachment.

Code Snippet [C#]

this.dataGrid.AllowEdit=false;

Please let us know if you have queries.

Regards,
Manikandan J R.




CS_6753b1ef.zip

Habeeb Rahman [Syncfusion]
Replied On March 4, 2011 01:58 AM

Hi Mohammed,

Thanks for using Syncfusion Products.

Yes, you can set all rows of GridDataControl as ReadOnly by setting AllowEdit property of GridDataControl to False.

Code Snippet [C#]

this.dataGrid.AllowEdit=false;

And also you can set particular rows of all the rows as ReadOnly by the following code in QueryCellInfo event.

Code Snippet [C#]

this.dataGrid.Model[rowIndex, colIndex].ReadOnly = true;

Please let us know if this helps.

Regards,
Habeeb





ReadOnlyProperty_b460bde1.zip

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.

;