This is a migrated thread and some comments may be shown as answers.

Problem with saving data

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tooraj
Top achievements
Rank 1
Tooraj asked on 05 Nov 2010, 03:58 PM
Hi,
I have some problems in my project:
1. When I try to save parent table this error occurs:
UPDATE statement conflicted with COLUMN REFERENCE constraint 'eq_em_id'. The conflict occurred in database 'KOC151', table 'eq', column 'em_id'.
2. I want to have a column which shows a text box that an ellipsis button resides in it.
3. When user presses Append button of DataNavigator control, I want to move cursor to the new row and first cell.
4. Please provide me a sample which show how can have column which is derived from GridViewDataColumn class and also make it possible to have my own editor, I don't want to use RadHostItem class.
Thank you, Tooraj Azizi.

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 07 Nov 2010, 11:59 AM
Hello Tooraj,

1. This is not related to telerik controls, there is a problem with one of the constraints defined for the table.
2. You should not use textboxes in cell, textboxes are input controls are will be shown on top of other elements (like scrollbars, pinned columns and so on) and this will cause some very ugly visual glitches.
3. Please try the following code:
void button_Click(object sender, EventArgs e)
{
    foreach (var row in radGridView1.MasterView.SystemRows)
    {
        var newRow = row as GridViewNewRowInfo;
        if (newRow != null)
        {
            newRow.IsCurrent = true;
            //newRow.Cells[0].BeginEdit();
            break;
        }
    }
}
4. If you are talking about the FADateTime picker i would like to ask you if my previous solutions helped, and if yes, please mark the question as answered, so that others can find the answers to their questions faster.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga
Tags
GridView
Asked by
Tooraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or