Good Morning Guys,
Can someone post a snipet code on how to get a value of a selected cell in a Ultragridweb.
Thank you
Thank you.
You Solved my Problem
Vuyiswa maseko
In server-side C# code:
using Infragistics.WebUI.UltraWebGrid;...if (ultraWebGrid1.DisplayLayout.SelectedCells.Count > 0){ UltraGridCell selectedCell = ultraWebGrid1.DisplayLayout.SelectedCells[0]; // In practice, you'd cast this to the appropriate data type for the corresponding column object cellValue = selectedCell.Value;}
In client-side JavaScript code:
var grid = igtbl_getGridById("<%= ultraWebGrid1.ClientID %>");if (grid.SelectedCells.length > 0){ var selectedCell = grid.SelectedCells[0]; var cellValue = selectedCell.getValue();}