on 02-28-2018 9:44 AM
Hello all,
I have this code that I use once a user click on the last column, a new row is added. The new row adds but the problem is that the cursor does not go to the new row, it stays on the old row. How can I fix this?
#region Add Row
if (pVal.CharPressed == 9 && (pVal.ColUID == "iV_7" || pVal.ColUID == "sV_4") && pVal.Before_Action == false)
{
_form.Freeze(true);
if (_cmbType.Selected.Value == "Item")
{
ClearItemMatrix();
oIMatrix.AddRow();
GenerateIMatrixNo();
}
if (_cmbType.Selected.Value == "Service")
{
ClearServiceMatrix();
oSMatrix.AddRow();
GenerateSMatrixNo();
}
_form.Freeze(false);
}
This is normal behavior, in this case try to click in the last cell
YOURMATRIX.Columns.Item(0).Cells.Item(YOURMATRIX.VisualRowCount).Click();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Danilo. Works!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.