How can I bind to a DataSource (DataTable) when the selection mode of my DataGridView is set to FullColumnSelect?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure if theres a proper way to do it, or if this is it, but i got mine to work like so;
So for each column in the datagrid, you set the sortmode to notsortable (this may be the only way), and selected to false. Then change the selection mode to fullcolumn select, and the first column to selected = true.
You can probably have the last line of code in the designer mode if you wanted, i.e. change it when you click on the datagrid in design mode.