boundcolumn

Possible to call a function inside BoundColumn.DataField?

<asp:BoundColumn DataField="pos" HeaderText="Principal Office" /> would it be possible to somehow... <asp:BoundColumn DataField="postProccess(pos)" HeaderText="Principal Office" /> ...so I could modify the value as needed? CRAP: A field or property with the name 'postProcess(pos)' was not found on the selected data source. Anyon...

Bound Column in ASP Grid view when invisible cannot be accessed

I have a GridView with BoundColumns. The first 2 columns are hidden and I would like to access them using gridView1.Rows[0].Cells[0].Text and gridView1.Rows[0].Cells[1].Text respectively and I get a empty string. When the columns are changed to visible, then I can access the values. I have tried changing the column width to zero as sugge...

How do I access the text of a selected BoundColumn of a DataGrid?

<asp:DataGrid ID="dgResetPassword" DataKeyField="user_id" OnItemCommand="resetSelect" CellPadding="10" HeaderStyle-BorderStyle="none" AutoGenerateColumns="False" runat="server" ForeColor="#333333" GridLines="None" Width="550px"> <Columns> <asp:ButtonColumn DataTextField="sap_id" HeaderText="SAP ID" /> <asp...

Datagrid using usercontrol

Hello I am fighting with this problem: I have a usercontrol which contains a textbox and a button (the button calls some functions to set the textbox's text), here is the xaml: <UserControl x:Class="UcSelect" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Nam...