First time poster, long time user. Here is my issue
Is there any way to find out the rowstate of the grid row, similar to a dataset retaining information of insert, update, delete?
Is there a property I can access that will tell me 'even though this is not currently an addrow, it is an inserted row in the grid?
here is my code, really hope to be able to add an OR to the if statement:
private void _grdGLMapping_AfterRowActivate(object sender, EventArgs e){if (this._grdGLMapping.ActiveRow.IsAddRow == true || this._grdGLMapping.Rows.????){
this._grdGLMapping.ActiveRow.Cells["sDWHTwoPartCode"].Activation = Activation.AllowEdit;this._grdGLMapping.ActiveRow.Cells["sOrigGeoCode"].Activation = Activation.AllowEdit;this._grdGLMapping.ActiveRow.Cells["sProductMappingID"].Activation = Activation.AllowEdit;this._grdGLMapping.ActiveRow.Cells["sTradeAccountCode"].Activation = Activation.AllowEdit;this._grdGLMapping.ActiveRow.Cells["sICAccountCode"].Activation = Activation.AllowEdit;}else{this._grdGLMapping.ActiveRow.Cells["sDWHTwoPartCode"].Activation = Activation.NoEdit;this._grdGLMapping.ActiveRow.Cells["sOrigGeoCode"].Activation = Activation.NoEdit;this._grdGLMapping.ActiveRow.Cells["sProductMappingID"].Activation = Activation.NoEdit;this._grdGLMapping.ActiveRow.Cells["sTradeAccountCode"].Activation = Activation.AllowEdit;this._grdGLMapping.ActiveRow.Cells["sICAccountCode"].Activation = Activation.AllowEdit;}}
Hello,
Could you please clarify what other condition you want to add to the if statement. With your 'IF' you know if the active row is an 'AddRow' or already inserted, so I might be missing something here. I will be very happy to assist you further on that matter.
I am just checking about the progress of this issue. Please let me know If you need my further assistance on this.