Hi,
I bound an Eventhandler to the wx.grid.EVT_GRID_SELECT_CELL event and want to activate the editor in the selected cell. I couldn't get it working using: EnableCellEditControl or ShowCellEditControl. How can I achieve this?
...
In my parentpage I have dropdownlist, multiview and button. Multiview has a user control.
On click of the button i pass the selected value from dropdown to the user control and call the databind method to populate the user control with corresponding data.
User control has gridview which is populated using objectDataSource. I'm using t...
What is the best way to export a gridview into an Excel spreadsheet? This seems easy
except that my Gridview doesn't have an export attribute. What is the quickest way to do this?
...
My gridview has a template field with a label in it. I want to label the field using the QuestionID so that it doesn't create duplicate id's.
I tried doing the following:
<asp:TemplateField HeaderText="No">
<InsertItemTemplate>
<label id='<%# (string.Format("Label_{0}",
DataBinder.Eval(Conta...
I'm trying to export contents of a RadGrid to Word (same problem with basic ASP.NET GridView). The grid contains images and descriptions. Unfortunately, I don't have Word, just OpenOffice, but I see the same problem happening with Word. The document contains references to images, and text, but the images are missing.
...
my problem: how do I populate extra cells in my gridview during the runtime construction of the grid? (these cells are not bound to any datasource and all I want to do is show some custom text)
I have a gridview on my page and I get 2 columns as bound columns from a fixed database - let's call them
id and URL
I've added a couple of ex...
Using Aspnet, C# 3.5 in vs2008 :
I have used sucessfully the following code in a gridview or listview templated column:
<asp:Button ID="btnShow" runat="server" Text="?"
TabIndex="-1" CommandName="ShowDefinition"
CommandArgument='<%# Eval("PKey") %>' />
With code behind to get an identifier for the row in which the button wa...
I want to add a empty row in my Grid.
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton id="Insert" runat="server" CausesValidation="false"
CommandName="Insert" OnClick="GridViewInsert"
ImageUrl="~/Images/Grid/Insert.gif" />
In GridViewInsert Event:
Award_Status_List list = new Award_Status_List();
list.Award...
I have a Repeater that has a gridview in it, which uses an SqlDataSource with a delete command. When I click delete on a given row, it posts back but doesn't fire the delete. Am I forgetting something?
...
I have a GridView control which I want to have 2 visible fields, a label and a dropdown. Instead of using a RowEditTemplate, I was hoping to just define the ItemTemplate to be the dropdown value.
On the event that a dropdown is changed, I want to execute some code where I can get the integer key for that gridview row, and the new selec...
hi,
im using gridview to display records. Rows and columns are generated dynamically by using (pivot table - sql server ). I want to display textbox in each cells of the grid. Can anybody help me pls.
...
ASP.Net +C#
I have a web page and a GridView in it
in my code some where i need to change the color of data it display
something like :
GridView1.Rows[y].ForeColor = System.Drawing.Color.FromArgb(0, 204, 0);
the problem is:
i have a hyberlike in some cells of the GridView and when i change the color the change affects onlythe text in...
Hi,
In the code-behind of a WPF application I have a variable containing a GridView. I know for sure that this GridView is the View of a ListView. Is there any way to get a reference to that ListView?
Thanks
...
I need a excel-like grid control in MFC, do anyone have good suggestion to implement that ?]
with the control i can filter the data by clicking on the header, then it will display distinct data of current column for selection.
Thanks!
...
I have a Gridview that has a timestamp as one of the rows. When I read the data from the database the data is in the format( mm/dd/yyyy hh:mm:ss ). I've figured out how to format the way I want it which is just the ( mm/dd/yyyy ) and droping of the (hh:mm:ss) with the following code:
Dim numrows2 = GridView1.Rows.Count
For i = 0 To ...
I've created a control that extends the BoundField control to do some special processing on the data that's passed into it.
I now have a grid that has AutoGenerateColumns="true", by which I'd like to intercept the HeaderText, see if it's a particular value and then swap in the "SpecialBoundField" instead. I've tried using the OnDataB...
I have the following grid:
<asp:GridView DataSourceID="accountsDataSource" DataKeyNames="Id" ShowEditButton="true" ...>
<asp:TemplateField HeaderText="Name">
<ItemTemplate>
<asp:Hyperlink ID="lnkGridEditEntry" runat="server" Text='<%# Bind("Name")%>' NavigateUrl="..." />
</ItemTemplate>
<EditItemTemplate>
<asp...
These routines (vb.net) allow you to dump a gridview to CSV, even if there are templated controls in the cells. It works, but I'm not thrilled with it.
What improvements should I make and why?
Private Shared Function CsvFormatted(ByVal t As String) As String
If t.Contains(",") Then
t = """" + t + """"
End If
Retu...
Hi sir,
I have a gridview and a dropdownlist on my page.
The gridview is binded through code behind with some columns. Among these price is also a column.
My scenario is to change the price field based on the dropdown criteria.
The price column consists of values in "lakhs", and i need to change them as crores or usd or some other fo...
I have a gridview that is being populated from a sql database.
When the results are displayed I am linking the district #'s to a new contact page for each one. Ex. d1.aspx, d2.aspx, d3.aspx etc. On each of those pages there is a link to return back to the orginal page. When this happens the original page is refrreshed and the previous g...