I n my case i am reterieving some datas from the backend
in that one patricular column in the gridview should be hidden.it should not shown in the screen.in case if is use visible="false" the datas not showing in when clicking the event the text box how to do this pls help me.
source code:
---------------------------------------------
Expand|Select|Wrap|Line Numbers
- <asp:BoundField DataField="GLAC_NAME" HeaderText="A/cNo">
- <ItemStyle Width="200px" />
- </asp:BoundField>
code begin:
----------------------------------------------------------
Expand|Select|Wrap|Line Numbers
- protected void GridLedger_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- try
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- e.Row.Attributes.Add("onMouseDown", "var str = document.getElementById('" + e.Row.ClientID + "').cells[1].innerText; document.getElementById('"+TextBox1.ClientID+"').value = str;");
- }
- }
- catch (System.Exception ex)
- {
- throw ex;
- }
- }