Hello
How can I realize this behavior? The user clicks to the first cell of the new row at the top of the grid. He fills in a value, then he presses the tab key. The cursor goes through the cells. When the user presses tab in the last cell, the row should be added and the cursor should go to the first cell of a new row.
This does not work for me: http://www.telerik.com/community/forums/winforms/gridview/automatically-add-new-row.aspx
Thank you
wima
How can I realize this behavior? The user clicks to the first cell of the new row at the top of the grid. He fills in a value, then he presses the tab key. The cursor goes through the cells. When the user presses tab in the last cell, the row should be added and the cursor should go to the first cell of a new row.
This does not work for me: http://www.telerik.com/community/forums/winforms/gridview/automatically-add-new-row.aspx
Thank you
wima
6 Answers, 1 is accepted
0
Hi wima,
Thank you for contacting us. There will be a new property that will make that possible in the new RadGridView to be released at the beginning of March. Please excuse us for the inconvenience. I have updated your Telerik points.
Best wishes,
Nick
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Thank you for contacting us. There will be a new property that will make that possible in the new RadGridView to be released at the beginning of March. Please excuse us for the inconvenience. I have updated your Telerik points.
Best wishes,
Nick
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

moh salhi
Top achievements
Rank 1
answered on 14 Apr 2010, 10:54 PM
Hi ,
I need to ask 2 question about grid.
1) I need to make the first cell in new row in editable mode from code, without user used mouse to click on grid , can you help me ?
2) i have rad version 2010 Q1 , but the cursur not go to the first cell in new row when i end from last cell< can you help me how to do this in code ?
Thank you
salhi
I need to ask 2 question about grid.
1) I need to make the first cell in new row in editable mode from code, without user used mouse to click on grid , can you help me ?
2) i have rad version 2010 Q1 , but the cursur not go to the first cell in new row when i end from last cell< can you help me how to do this in code ?
Thank you
salhi
0
Hi moh salhi, thank you for contacting us.
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Regarding your questions:
1. You should mark the new row and the first column as current, then you need to call the BeginEdit method. Here is a sample:
protected
override
void
OnShown(EventArgs e)
{
base
.OnShown(e);
this
.radGridView1.MasterGridViewInfo.TableAddNewRow.IsCurrent =
true
;
this
.radGridView1.Columns[0].IsCurrent =
true
;
this
.radGridView1.BeginEdit();
}
2. I am not sure that I understand you question, however you could use the code from the code snippet above to make the first column current.
I hope this helps.
Regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

moh salhi
Top achievements
Rank 1
answered on 19 Apr 2010, 04:07 PM
thanks Jack
yes this is work good.
I need to ask about new row,
i work with gride , and i need to set the some value in new row when user leave the cell>
example :
user add new row
in cell(0) user enter ( 1 ) ' Emp No.
in cellendedit event i need to write code to set value in cell(1) ' Emp Name
can you help me please
yes this is work good.
I need to ask about new row,
i work with gride , and i need to set the some value in new row when user leave the cell>
example :
user add new row
in cell(0) user enter ( 1 ) ' Emp No.
in cellendedit event i need to write code to set value in cell(1) ' Emp Name
can you help me please
0
Hi moh salhi,
We will ask you to please open new forum threads on each new question, especially when they are not related to your previous ones. This way other users will not get confused when reading the Forums.
You can use also the DefaultValuesNeeded event, which fires when entering the add new row:
Kind regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
We will ask you to please open new forum threads on each new question, especially when they are not related to your previous ones. This way other users will not get confused when reading the Forums.
You can do this by setting the cell Value property. Here is a sample:
void
radGridView1_CellEndEdit(
object
sender, GridViewCellEventArgs e)
{
if
(
this
.radGridView1.CurrentRow
is
GridViewNewRowInfo &&
((GridViewDataColumn)
this
.radGridView1.CurrentColumn).UniqueName ==
"ID"
)
{
if
(
this
.radGridView1.CurrentRow.Cells[
"Name"
].Value ==
null
||
this
.radGridView1.CurrentRow.Cells[
"Name"
].Value == DBNull.Value)
{
this
.radGridView1.CurrentRow.Cells[
"Name"
].Value =
"John"
;
}
}
}
void
radGridView1_DefaultValuesNeeded(
object
sender, GridViewRowEventArgs e)
{
e.Row.Cells[
"Name"
].Value =
"John"
;
}
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0

Victoria F
Top achievements
Rank 1
answered on 20 Oct 2010, 07:18 PM