Hi,
I have a C# project with a bound gridview using an Edit CommandField.
When the line item is marked for editing, the one cell has a ListBox (ID = SharCode) with SelectionMode = Multiple.
My UpdateCommand in my datasource for the gridview has a parameter called ShareCode (type = string).
But my problem is that is the user selects multiple option, only the first selected option is passed to the UpdateCommand.
I cant iterate through the options to see what is selected because i'm using a datasource for updating my gridview.
Is it possible to pass an array of selected items to the updatcommand of a datasource? Something like ShareCode[].
Has anyone done this before?
Any help appreciated...
Vauneen
I have a C# project with a bound gridview using an Edit CommandField.
When the line item is marked for editing, the one cell has a ListBox (ID = SharCode) with SelectionMode = Multiple.
My UpdateCommand in my datasource for the gridview has a parameter called ShareCode (type = string).
But my problem is that is the user selects multiple option, only the first selected option is passed to the UpdateCommand.
I cant iterate through the options to see what is selected because i'm using a datasource for updating my gridview.
Is it possible to pass an array of selected items to the updatcommand of a datasource? Something like ShareCode[].
Has anyone done this before?
Any help appreciated...
Vauneen