I have some problem using WDG and I found the same question follow link.
http://ko.infragistics.com/community/forums/p/56842/290747.aspx#290747
I want to handle CellValueChanged Event on SERVER-SIDE.
I used RowUpdated Event instead of CellValueChanged which is not exists.
but it doesn't fire when I changed cell value.
I attached the code.
<ig:WebDataGrid ID="uwgCrewList1" runat="server" Height="350px" Width="100%" DataKeyFields="CREWID" AutoGenerateColumns="False" EnableDataViewState="true" OnRowUpdated="CrewList_RowUpdated"> <.....></ig:WebDataGrid>
please reply how to handle this.
Thanks.
Hello,
You just have to make the column editable by default and cancel EnteringEditMode for the cells that should be read-only.
Udhaya,
You can only make a column read-only, but not a single cell. A possible workaround would be to cancel EnteringEditMode client-side event of the grid. This way you can prevent users from editing certain cells, based on some condition.
Hope this helps.
Hi Nikolay.
when I use System.Web.UI.Page, It works well. I think it's about page life cycle thing.
Hi Nikolay,
This also does the same thing. It sets the columnsetting of that column for the entire grid.
I need it to be done only for the selected row.
foreach (GridRecord row in Wdg.Behaviors.Selection.SelectedRows){
EditingColumnSetting ecs = new EditingColumnSetting(Wdg);
ecs.ColumnKey ="Column2";
ecs.ReadOnly =false;
this.Wdg.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(ecs);
}
This is how i tried, but it dint work.
Thanks,
Udhaya