(C#)
When using a GridViewComboBoxColumn is it possible to set the Tag attribute on the cell item who's value comes from the grid combo box.
So I can call:
gridView1.CurrentRow.Cells["ColumnName"].Tag
I understand this would probably have something to do with the GridViewComboBoxColumn DataSource and what it is passed.
For Example
I have two GridViewComboBoxColumns in my GridView, call them "suppliers" and "products".
These items get populated from a database where each has a GUID and a Name.
I would like the Name to show in the grid combobox item for each column and the GUID to be assigned to the grid combo box item tag (or some other place).
When the user changes the "supplier" in any row, I would like to fetch the list of products from the database by searching for the supplier GUID.
Currently it seems all I can get back is the string name. I can see the gridView1.CurrentRow.Cells["ColumnName"].Tag however it is null
Any help would be appreciated, and if you need more info or something to be clearer please ask.
Thanks In advance
Tom.
When using a GridViewComboBoxColumn is it possible to set the Tag attribute on the cell item who's value comes from the grid combo box.
So I can call:
gridView1.CurrentRow.Cells["ColumnName"].Tag
I understand this would probably have something to do with the GridViewComboBoxColumn DataSource and what it is passed.
For Example
I have two GridViewComboBoxColumns in my GridView, call them "suppliers" and "products".
These items get populated from a database where each has a GUID and a Name.
I would like the Name to show in the grid combobox item for each column and the GUID to be assigned to the grid combo box item tag (or some other place).
When the user changes the "supplier" in any row, I would like to fetch the list of products from the database by searching for the supplier GUID.
Currently it seems all I can get back is the string name. I can see the gridView1.CurrentRow.Cells["ColumnName"].Tag however it is null
Any help would be appreciated, and if you need more info or something to be clearer please ask.
Thanks In advance
Tom.