problem with datagridview in windows application
-
I hav a datagridviewview in windows application whose column names are set from the fron end i setted their propertyname also cause i wanna to bind it with database, just like as Name Address Admin Delhi so m wanna tht as i will click on address cell of any row there is one combobox will show who is binded with database and as i will click on another row, the previous row will be show normally as a textboxcolumn and currentcell with show as a combobox column who will also binded with database
-
I hav a datagridviewview in windows application whose column names are set from the fron end i setted their propertyname also cause i wanna to bind it with database, just like as Name Address Admin Delhi so m wanna tht as i will click on address cell of any row there is one combobox will show who is binded with database and as i will click on another row, the previous row will be show normally as a textboxcolumn and currentcell with show as a combobox column who will also binded with database
I've read your post a couple of times, but I can't find a question or find at which point you got stuck. Can you explain what behaviour you were expecting, and the actual results? With a part of the code to demonstrate the problem?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
I've read your post a couple of times, but I can't find a question or find at which point you got stuck. Can you explain what behaviour you were expecting, and the actual results? With a part of the code to demonstrate the problem?
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
Hello Sir, Look i have a datagridview who is binded with database and shows those values Name Address admin Delhi adam India as i'm going to click on delhi my datagridview will show a combobox on click of it and shows a list of cities from database and after selecting any value from combobox i'm moving toward next row so as i'm going to next row m wanna tht combox will convert into textboxcolumn again thts the problem happening with me. Hope so tht now u can understand my problem...
-
Hello Sir, Look i have a datagridview who is binded with database and shows those values Name Address admin Delhi adam India as i'm going to click on delhi my datagridview will show a combobox on click of it and shows a list of cities from database and after selecting any value from combobox i'm moving toward next row so as i'm going to next row m wanna tht combox will convert into textboxcolumn again thts the problem happening with me. Hope so tht now u can understand my problem...
Arun kumar Gautam wrote:
Hope so tht now u can understand my problem...
Sounds more like a specification than a problem. You can add a DataGridViewComboBoxColumn[^] to the
DataGridView
s "Columns" collection. Also note;With the DataGridViewComboBoxColumn, you can display a column of cells that contain drop-down list boxes. This is useful for data entry in fields that can only contain particular values, such as the Category column of the Products table in the Northwind sample database. [...] Combo box columns are not generated automatically when data-binding a DataGridView control. To use combo box columns, you must create them manually and add them to the collection returned by the Columns property.
Samples are here[^], walktroughs and howto's over here[^]. Hope that helps to get you started :)
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]