I made a windows application with c#. I have a datagridview with two DatagridviewCom boBoxColumn, Category and subCategory both of these two columns get their drop down list with Column.Items.Ad d(,.....). I did not use databinding since my user need to type free text which is not in the list .
Now I need to let user click on Category column and to get corresponding subCategory list. I know there is some discusstion on <Link Removed>. But I can not use databinding since my user want to type free text. So what I can I do? I did try to use CellBeginedit and CellEndEdit and in those event, instead of use "datasource ".. I use column.Items.Ad d... and coulum.Items.Re move...,, But i keep get dataerror " System.Argument ExceptionataGri dViewComboBoxCe ll value is not valid." Can someone help me on this?
Thanks !
Helen
Now I need to let user click on Category column and to get corresponding subCategory list. I know there is some discusstion on <Link Removed>. But I can not use databinding since my user want to type free text. So what I can I do? I did try to use CellBeginedit and CellEndEdit and in those event, instead of use "datasource ".. I use column.Items.Ad d... and coulum.Items.Re move...,, But i keep get dataerror " System.Argument ExceptionataGri dViewComboBoxCe ll value is not valid." Can someone help me on this?
Thanks !
Helen
Comment