hi,
i found this event: ItemDataBound
which is for the datagrid WebControls.
i am looking for the same event in the datagrid for windows apps.
but i can't find it. is there such a replacement for this?
thanks
Printable View
hi,
i found this event: ItemDataBound
which is for the datagrid WebControls.
i am looking for the same event in the datagrid for windows apps.
but i can't find it. is there such a replacement for this?
thanks
There are a great many differences between WinForms and WebForms so it's not even worth comparing. What are you trying to achieve? Once we know that we can suggest the best way to accomplish it.
i want to append a 2 combobox to a datagrid.
which is bounded to a database. for example:
Database Fields:
AnimalType AnimalName AnimalQuantity
ComboBox ComboBox Normal Cell
so for each AnimalName cell, it would be dependent on the AnimalType depending on the selection(e.g. Fowl, Mammal, Arachnid, Marine)
AnimalType and AnimalName would also be bounded to different databases
i figured this would be hard coded because of the additional functionalities.
and the only way i could come up is controlling the datagrid in this manner
Are you using .NET 1.x? Please specify your version in future. If not then use a DataGridView instead, which is much more functional. If you must use a DataGrid then you can certainly place ComboBoxes and other controls in cells, but I can't claim to have done it myself as I've never really used DataGrids. Follow the WinForms FAQ link in my signature and check out the DataGrid section, which has plenty of material and I'd be shocked if it didn't explain how to host a ComboBox.
yes,
i'm using Visual Studio 2003 .Net 1.1
datagridview?
hm.. ok. i'll check it out.
The DataGridView is new in .NET 2.0. That's why I said if you're NOT using .NET 1.x then you should use a DataGridView. If you ARE using .NET 1.x then you are limited to the DataGrid.