Hi Hristo,
I have a read-only functionality where in - i use a 'BoundCheckBoxField' to create this(read-only) column in Webdatagrid.
void Webdatagrid1_Init(object sender, EventArgs e)
{
BoundCheckBoxField ReadOnly = new BoundCheckBoxField(true); ReadOnly.Key = c_sReadOnly; ReadOnly.Header.Text = ReadOnlyText(); ReadOnly.Width = Unit.Pixel(65); ReadOnly.CssClass = "CheckboxItem"; ReadOnly.CheckBox.CheckedImageUrl = "~/ig_res/Default/images/ig_checkbox_on.gif"; ReadOnly.CheckBox.UncheckedImageUrl = "~/ig_res/Default/images/ig_checkbox_off.gif"; this.Webdatagrid1.Columns.Add(ReadOnly);
}
I want this column to be not clickable for all the rows except the row which was created by me. Hope this can be done in InitializeRow.
Need your inputs on how to achieve this in code behind.
Please help me with a sample, as i dint get much info while browsing through your site.
Hi Jeevitha,
I am not Hristo, but will be happy to assist you with your question.
It's my understanding that you want to set a specific column to be read-only. You can achieve this using the ReadOnly property from EditingColumnSetting Class.
Here are some helpful topics:EditingColumnSetting Class (Set ReadOnly column)ReadOnly PropertyWebDataGrid-Make some cells read only
Please let me know if you have any questions regarding this matter.