Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1280
How to make BoundCheckBoxField not clickable(disabled)
posted

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.

Parents
No Data
Reply Children
No Data