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 PostNot sure why your datagridview doesn't always have an unpopulated record shown. Check this code. As soon as you type anything in a cell, it will append a new unpopulated record/row to the end of the grid, which will again repeat as soon as you type anything in the new …
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?
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.