checking values in datagrid rows
-
Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP
-
Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP
i am not sure my giving this solution that, is it true or no ? but please try to solve your prblem. firt, capture the value from the combo box and than check its with other columns which you want to made uneditable by apply the contion that if the particulare item is selected from the combobox than set the editable property of that columns.
-
Hi.. I am new to datagrid and windows forms. Here's is what I am trying to do. I have a datagrid which is bound to a datasource. In my datagrid I have a custom combobox column. Depending upon users selection in the combobox column certain columns in the datagrid becomes uneditable. I have no idea how to capture user input from the combobox column and inactivate the dependable columns. I have no idea where to start... Any help will be greatly appreciated Thanks in advance -RP
Dear, You can try in this way. You can use the method FindControl of the datagrid item to find the control in your datagrid
Dim x as new control for each x in datagrid.controls ... next
You use this code to show all the control in the datagrid, then you can try deeper into the datagrid item to find your combobox... then you can use the method findcontrol in the datagrid item to get value and set value for your control. PS: I'm not sure if the code is correctly right or not. But that's the idea. I did well in ASP .NET Ich liebe .NET :)