Hi,
In a wingrid everytime I click on up/down/left or right key, the next cell must be activate to edit, I searched a lot in the forum, I tried many example but nothing is working, this what I was implemanting :
public void grd_KeyDown(object sender, KeyEventArgs e) {
switch (e.KeyData) { case Keys.Down: grd.PerformAction(UltraGridAction.BelowRow, false, false); grd.PerformAction(UltraGridAction.EnterEditMode, false, false); break; case Keys.Up: grd.PerformAction(UltraGridAction.AboveRow, false, false); grd.PerformAction(UltraGridAction.EnterEditMode); break; case Keys.Right: grd.ActiveColScrollRegion.Position += 175; break; case Keys.Left: grd.ActiveColScrollRegion.Position -= 175; break; }
grd.DisplayLayout.Override.CellClickAction = CellClickAction.CellSelect; e.Handled = true;
}
can anyone give me a help, thank you
Hi Sahaja,
Thank's for the article, It's exactly what I was searching for, thank you again :)
Hello Issam,
You can refer to the below KB article for implementing this:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=1997
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer