Click here to Skip to main content
12,828,639 members (44,449 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET
In My Project I'm Using a Unbounded Datagridview With specified Columns like ID, Item Name, Item Code, Size, Color, Rate, Quantity, Total. Here i made my End User to Enter the Item Name / Item-code and Quantity only. Remaining Columns Will Be auto Completed. Now My Problem is When End User Enter the Item Name/ Item Code the Focus Should set to the quantity and when quantity as enter then the focus should be in new row on Item Name/ Item Code .

is it possible . can anybody give me a right it to achieve this task...
Posted 9-Feb-13 20:38pm
Comments
Sandeep Mewara 10-Feb-13 3:08am
   
Yes possible. Please try something and share if you get stuck.
Sergey Alexandrovich Kryukov 10-Feb-13 14:09pm
   
This is just lack of understanding of terminology or misconception. That's why OP cannot find it out.
In my answer, I provided just a hint which should make it clear how to find a solution, please see.
—SA

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

The notion "focus" is not applicable to cells or other parts of a control. It always means "keyboard focus" and only applicable to a whole control, in your case, to the instance of DataGridView. What is applicable is called "selection", and yes, it is similar to "focus". So, look at the MSDN help page:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx[^].

If you search through this page with a key "select", as well as the pages for related classes representing cells, columns and rows, you will easily find what you need.

—SA
  Permalink  
Comments
Sandeep Mewara 10-Feb-13 14:20pm
   
Have 5 for the direction and details. :)
Sergey Alexandrovich Kryukov 10-Feb-13 14:45pm
   
Thank you very much, Sandeep.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 10 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100