B
booboo_US
Guest
Hi Everyone:
I am using vb.net 2019. I have an unbound datagridview, with three columns. Columns 1 and 3 are comboboxes, and column 2 is a textbox. I actually have two questions:
1- how can I prevent the program to generate new rows if the user clicks in columns 2 or 3 in the row that has the * symbol in the row header? Only new rows should be generated if column 1 is used first.
2- Once the user selects an item from column 1, a pencil appears in the row header. How can I force it to accept the selected value from the combobox, and redisplay the small triangle in the row header? When I do a physical mouse click, that will happen. However, when I change the currentcell, or use the EndEdit Method that will not happen and the pencil still shows.
I appreciate all your help and sample code. Thanks;
Bob
Continue reading...
I am using vb.net 2019. I have an unbound datagridview, with three columns. Columns 1 and 3 are comboboxes, and column 2 is a textbox. I actually have two questions:
1- how can I prevent the program to generate new rows if the user clicks in columns 2 or 3 in the row that has the * symbol in the row header? Only new rows should be generated if column 1 is used first.
2- Once the user selects an item from column 1, a pencil appears in the row header. How can I force it to accept the selected value from the combobox, and redisplay the small triangle in the row header? When I do a physical mouse click, that will happen. However, when I change the currentcell, or use the EndEdit Method that will not happen and the pencil still shows.
I appreciate all your help and sample code. Thanks;
Bob
Continue reading...