Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Vasantha peddireddy #1
Adding a href link to a column in a data grid
Hi,
I am trying to figure out how I can add a html link to a value (which is the
virtual path of a file) in the data grid column. I have code as below. Please
help!
<asp:DataGrid id="DataGrid1" BorderColor="black" BorderWidth="1"
CellPadding="3" AutoGenerateColumns="false"
runat="server" AllowPaging="True" ItemStyle-Wrap=true>
<HeaderStyle BackColor="#00AAAA"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="VPath"
HeaderText="VPath"></asp:BoundColumn>
</column>
</asp:Datagrid>
Vasantha peddireddy Guest
-
how to get data grid column names
Hi, Can any one tell me how to get column names fro a datagrid. Is their any property or collection containing them Regards Swapnil D. ... -
Advanced Data Grid Column Grouping
When using column grouping with the advanced data grid, is it possible to ONLY show the AdvancedDataGridColumnGroup headerText and not have the... -
Boolean column in a data grid
My data grid constains several boolean columns, it is connected to a dataset. Can anyone tell me why i have to click the bool columns (init value... -
Nested Datagrid Inner Grid adding button column
I'm creating a hierarchical, editable ASP.NET datagrid with drilldown using two SQL tables. The "child" rows sit inside a cell of its "parent". ... -
hide column in data grid
Hello. I just populated my datagrid but I need to hide one of the column. Since I need this column's data, I cannot drop that column from my... -
Elton Wang #2
Re: Adding a href link to a column in a data grid
Try HyperLinkColumn:
<asp:HyperLinkColumn DataTextField="VPath" HeaderText="Link"
DataNavigateUrlField="VPath"
DataNavigateUrlFormatString="page.aspx?path={0}">
</asp:HyperLinkColumn>
"Vasantha peddireddy" <Vasanthapeddireddy@discussions.microsoft.com> wrote
in message news:96CCA152-1807-430D-9D39-B1C721389545@microsoft.com...the> Hi,
>
> I am trying to figure out how I can add a html link to a value (which isPlease> virtual path of a file) in the data grid column. I have code as below.> help!
>
> <asp:DataGrid id="DataGrid1" BorderColor="black" BorderWidth="1"
> CellPadding="3" AutoGenerateColumns="false"
> runat="server" AllowPaging="True" ItemStyle-Wrap=true>
> <HeaderStyle BackColor="#00AAAA"></HeaderStyle>
> <Columns>
> <asp:BoundColumn DataField="VPath"
> HeaderText="VPath"></asp:BoundColumn>
> </column>
> </asp:Datagrid>
Elton Wang Guest



Reply With Quote

