Hello,
Im using telerik 2010.2.10.713 version library, i want on my radgridview to validate the filled fields by the user at the end of editing the row, i have as selection mode the fullrow select, for that purpose i used row validating event wich i used on datagridview but this didnt work on radgrid view, im trying:
what is going wrong?
thanks!
Im using telerik 2010.2.10.713 version library, i want on my radgridview to validate the filled fields by the user at the end of editing the row, i have as selection mode the fullrow select, for that purpose i used row validating event wich i used on datagridview but this didnt work on radgrid view, im trying:
if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null) { radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error"; e.Cancel = true; //prevent the user to save changes return; }
<code style="color: #000;">if (radGridView1.Rows[e.RowIndex].Cells["usu_clave"].Value == null)</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;"> {</code><code style="color: #000;"> radGridView1..Rows[e.RowIndex].Cells["usu_clave"].ErrorText ="some error";</code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;"> e.Cancel = true; //prevent the user to save changes </code><code style="color: #069;font-weight: bold;"></code><code style="color: #000;"> return;</code><code style="color: #069;font-weight: bold;"></code> }<br><div style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"></code></span></span></div>what is going wrong?
thanks!