I admit I am new to this component set, but here's what I am running into. I am using Visual Studio 2008.
I have my dataset and my grid, no problem there. I have selection allowed on the grid, and that works correctly. After some research here, I have the following code:
<script type="text/javascript">
function RowSelected(sender, eventArgs)
{
var label = window.document.getElementById("TextBox1");
var dataItem = $get(eventArgs.get_id());
var grid = sender;
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
var cell = MasterTable.getCellByColumnUniqueName(row, "transaction_number");
label.Value = cell.innerHTML;
alert("Cell Value: " + label.Value);
//here cell.innerHTML holds the value of the cell
}
</script>
This brings up the transaction number in an alert box. But how in the world do I get this and other cell values back to where the VB.Net code can use them?
All help appreciated. I am well and thoroughly stuck.
I have my dataset and my grid, no problem there. I have selection allowed on the grid, and that works correctly. After some research here, I have the following code:
<script type="text/javascript">
function RowSelected(sender, eventArgs)
{
var label = window.document.getElementById("TextBox1");
var dataItem = $get(eventArgs.get_id());
var grid = sender;
var MasterTable = grid.get_masterTableView();
var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
var cell = MasterTable.getCellByColumnUniqueName(row, "transaction_number");
label.Value = cell.innerHTML;
alert("Cell Value: " + label.Value);
//here cell.innerHTML holds the value of the cell
}
</script>
This brings up the transaction number in an alert box. But how in the world do I get this and other cell values back to where the VB.Net code can use them?
All help appreciated. I am well and thoroughly stuck.