Received : 2007/08/14 15:45:56
Message : I'd like to know if there is a way to lock an entire row from being edited in Aspose.Grid.Desktop.
If so, could someone send me the c# code for doing so?
This message was posted using Aspose.Live 2 Forum
Received : 2007/08/14 15:45:56
Message : I'd like to know if there is a way to lock an entire row from being edited in Aspose.Grid.Desktop.
If so, could someone send me the c# code for doing so?
Hi,
Sorry, I thought you are using Aspose.Cells. But actually you are using Aspose.Grid.Web. So, kindly ignore my previous post and consider this one.
Well, you may use WebCell.IsReadOnly and WebCell.IsLocked properties in a loop to lock a complete row for your need.
E.g.,
//Lock the second row in the first worksheet.
for(int i = 0; i<=GridWeb1.WebWorksheets[0].Cells.MaxColumn;i++)
{
GridWeb1.WebWorksheets[0].Cells[1,i].IsReadonly = true;
}
Thank you.