i can´t know row index in a ultrawebgrid the propriety selectedindex that work in normal asp grid not accessible in ultragrid.
anyone know how i can know it? tks
Normal 0 21 false false false BG X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}
Hello,
You can try to use the property OnClick="UltraWebGrid1_Click" and get the index of row. Please take a look at the code behind below.
protected void UltraWebGrid1_Click(object sender, Infragistics.WebUI.UltraWebGrid.ClickEventArgs e)
{
Label1.Text = e.Cell.Row.Index.ToString();
}
Hope this helps.
label not get any value....
i try that on:
Protected Sub UWG_SelectedRowsChange(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.SelectedRowsEventArgs) Handles UWG.SelectedRowsChange
and withc code ine as:
Label1.Text = e.SelectedRows.Item(0).Index
and gives error : Object reference not set to an instance of an object.
The sample above is for the onClick event only .The SelectedRowsChange event has different properties.I hope this helps.
i change my code to function on_grid_click and works... tks for your help... tks tks
you know how i change ultragrid mode from clickabe to not?
that canbe made? making a gri enable = false?