jimmy
|
| Posted: 02/05/2004, 3:54 PM |
|
Hi, I have an editable grid for update only. Within the editable grid, one field is listbox showing the values of a column of another table, for user's selection, but I also want the default value of the ListBox matching the original record. However, the data of the grid is only shown on TextBox or Label fields, but not ListBox... I have set up the DataSource and BoundColumn of the ListBox, but it doesn't work...Or how can I edit the <SELECT> property to add selections based on a column of a table but not fixed values? any help?
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 02/09/2004, 2:48 PM |
|
We're not aware of such problem and I recommend that you contact our support to analyze your case in more detail.
The support link is below.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Justman
|
| Posted: 09/28/2004, 1:01 AM |
|
Hi Peter,
I have seen many of your comments on Listbox control and would like to share my current observations and hopefully, you may be able to tell me what is wrong with the listbox on my Editable Grid form.
I have a Listbox control on a Editable Grid form. The Listbox gets its data from a database table and I can use the value from the Listbox for Table/View insert and update - no problem!. But the issue is that I can't get the listbox value programatically. The initial value that populates the Listbox when the form is shown is from URL and I am happy with it.
I would like to get the current value and hold it in a variable for futher data processing. But I have not been able to do it.
For example;
global DBpost; //database connection
global $result; // Variable
global $orders //The editableGrid form
$result = $orders->Listbox1->GetValue();
$orders->Errors->addError("The current order ID is ".$result. " of orders");
Please let me know if it is possible to extract the listbox value programatically.
Thanks
Justman
|
|
|
 |
aakici
Posts: 49
|
| Posted: 01/28/2005, 4:17 PM |
|
define a global variable at the beginning of your code by yourself. then assign value of listbox to this variable then use it anywhere you want.
but an easy way is using a hidden textbox in every row of editable grid. place this hidden textbox, then use On Change event to assign listbox value to this hidden textbox. then you can use it anywhere easily.
_________________
Regards,
M.Alpaslan AKICI |
 |
 |
|