This question is locked. New answers and comments are not allowed.
Hi,
I've seen the example enable/disable and it wasn´t possible to solve my problem. I had problems specially in the following code:
GridViewRow row = RadGridView1.ItemContainerGenerator.ContainerFromItem(RadGridView1.Items[0]) as GridViewRow;
It always returns nothing.
My problem is:
There are 2 cases.
1) I need to disable some gridview cells at the moment of the load event of the grid. The variables I'm creating to select the specific cell I want aren't working because I only get the specific cell on editingcells or validatingcells methods.
2) I need to disable some gridview cells when I select an option on gridviewcomboboxcolumn. In this case, I would like to know how to create a selectionchange event for the gridviewcomboboxcolumn. I've read other topic of this forum, but It wasn't enough.
In both cases, the situation become more complex because the grid is dinamically generated, depending on database consults. So, I can't use the xaml code to solve my problem.
I hope you can help. I can describe these cases in more details if it's necessary.
Thank you very much.
I've seen the example enable/disable and it wasn´t possible to solve my problem. I had problems specially in the following code:
GridViewRow row = RadGridView1.ItemContainerGenerator.ContainerFromItem(RadGridView1.Items[0]) as GridViewRow;
It always returns nothing.
My problem is:
There are 2 cases.
1) I need to disable some gridview cells at the moment of the load event of the grid. The variables I'm creating to select the specific cell I want aren't working because I only get the specific cell on editingcells or validatingcells methods.
2) I need to disable some gridview cells when I select an option on gridviewcomboboxcolumn. In this case, I would like to know how to create a selectionchange event for the gridviewcomboboxcolumn. I've read other topic of this forum, but It wasn't enough.
In both cases, the situation become more complex because the grid is dinamically generated, depending on database consults. So, I can't use the xaml code to solve my problem.
I hope you can help. I can describe these cases in more details if it's necessary.
Thank you very much.