Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
ultrawebgrid
posted

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

  • 7694
    posted

    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.

     
  • 28464
    posted

    You can handle the grid Click event and get the row Index from there. There is a good code example for that located here:

    http://news.infragistics.com/forums/p/12704/47265.aspx

    Hope this helps.