Hi All,
In my application, i have a datagridview with 5 colums, at the form load the datagridview contains one row, I am showing a combobox in each of the 4 columns to select the values (i doesnot type any thing in that 4 columns), when i press tab the focus goes from column 4 to column 5.
Now when again i press tab the focus leaves the datagridview, but here i want that when i leave the column 5, there must be a row added.
How can i do that, can anyone help me on that?
Thanks in advance.
Regards,
Vidya
ShailaMohite -3 Newbie Poster
Recommended Answers
Jump to PostYou could also override the tab behavior of your form. In my case this DataGridView is databound to "dt" which is a datatable. You'll have to handle the adding of a new row depending on how you implemented the grid:
protected override bool ProcessTabKey(bool forward) { if …
Jump to PostIs your grid databound to a DataTable, DataSet, etc? Or are you manually populating the rows?
Jump to PostStop creating new threads with the same question. You already have asked the question. We are trying to help you.
These are the same question (some worded better than others):
http://www.daniweb.com/forums/thread225919.html
http://www.daniweb.com/forums/thread225955.html
http://www.daniweb.com/forums/thread225930.htmlYou will stop receiving help if you keep creating duplicate threads.
All 9 Replies
DdoubleD 315 Posting Shark
sknake 1,622 Senior Poster Featured Poster
ShailaMohite -3 Newbie Poster
sknake 1,622 Senior Poster Featured Poster
sknake 1,622 Senior Poster Featured Poster
ShailaMohite -3 Newbie Poster
sknake 1,622 Senior Poster Featured Poster
ShailaMohite -3 Newbie Poster
sknake 1,622 Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.