gridview

Checkbox itemtemplate templatefield text after databound

Hello guys, I have the following checkboxes in my gridview: <asp:TemplateField HeaderText="Active"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Active")%> <asp:CheckBox ID="Active" runat="server"/> </ItemTemplate> </asp:TemplateField> And it working very fine. I'm populating it with a bool value. T...

how to place horizontal scroll bar in Ext js Grid.

how to place horizontal scroll bar in Ext js Grid. pls help ...

How to call javascript function in item template when using gridview

I am trying to call a javascript function which will set forecolor and backcolor of a control when the control is loaded But this function is not raising. <ItemTemplate> <div onload= "invertColor(this,'<%# Eval("ColorCode") %>')"> <%# Eval("ColorCode") %> </div> </ItemTemplate> Here is my jav...

Modifying the html output of a gridview

I'm trying to modify the output of my GridView in the RowDataBound event handler, but it's not working - nothing happens. My code: Private Sub MyGridView_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles MyGridView.RowDataBound e.Row.Attributes.Add("data-xkoordinat", 0) End Sub What I expect to see: <...

GridView text encode ASP.NET

I have a gridview,i have a cell that contains follow text:"CONCLUÍDO". When I try to retrieve this text to a variable it comes with ISO LATIN CODE Of course it throws an exception. How can i remove this code from string? ...

Should I use a ListView, DetailsView, or GridView?

I need to display a table with various info (names, dates, serial numbers, notes). In addition, there is one field I need to be one of three specified values (Raise, Lower, Release). What view would be the best/easiest to implement which would let me add/edit/delete entries as well as provide a drop down option for the Raise, Lower, Rele...

ASP.NET Custom Paging

How to keep custom paging for dynamic result sets ? (i.e) based on 10 Dropdowns selection my stored procedure will Dynamically generates resultset,but it populates million records. Row statically know Record count,cusom paging is efficient,but how to achieve it for dynamically grown result set? Problem I have to bind generic List to G...

WPF ListView: Aligning text in selected columns

<ListView ItemsSource="{Binding MyData}"> <ListView.View> <GridView> <GridViewColumn Header="col1" DisplayMemberBinding="{Binding Path=value1}"> <GridViewColumn.CellTemplate> <DataTemplate> <TextBlock TextAlignment="Right" Text="{Binding Path=value1}"/> </DataTemplate> </GridVie...

How to disable Silverlight DataGrid validation footer?

I'm facing the following problem: I'm using validation summary popup for displaying errors on the page, and i have an editable DataGrid. So there are 2 problems: 1) DataGrid validation duplicates validation error, if it occurs in the DataGrid cell. For example. DataGrid contains a collection of objects IEnumerable. When I'm doing Comple...

ASP. NET C# GridView Paging

Hi good day to all. I have this web application for a certain company. In this web application there is a part that uses GridView to display records from the database and the way it is being displayed it is hard coded. I'll display my codes bellow. string SQLCommand = "SELECT LastName +', ' +FirstName + ' '+MiddleInitial AS '...

Display a truncated string using Eval

I have a ASP gridview control. I have a ASP label control in the item template column. I bind data to the grid using - <ItemTemplate> <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("Description") %>'></asp:Label> </ItemTemplate> But, the value of this string can be upto 80 characters. But, I cannot afford to have the c...

Opening gridview in new window, passing parameters between pages.

Hello all. I have the following scenario I would like to implement. I have a number of drop downs that the client can select a range of criteria. From this, they will press a button, the query will be generated and low and behold, a gridview will be produced in a new window (or at least give that impression) bound by an object datasour...

GridView: Can I implement client-side paging?

Regarding ASP.NET's GridView server control: Can I bind to a datasource in the code-behind, load the entire resultset, and then implement client-side paging without postbacks? If this isn't possible with GridView, I'm willing to implement a custom solution. EDIT: My GridView instance sits inside of a nyroModal (jQuery) pop-up div,...

How to read multilevel xml in vb.net, bind to radgrid

Hello, Please help me in reading this multilevel xml to a RadGrid. 1) I am planning not to use Aspx for this 2) The node named Item would eventually change as per app Requirements. So, I don't want to restrict my xpath to something like "//Product/Item" <Products> <Product ProductID="1"> <Item ItemID="1"> ...

ASP.NET 3.5 GridView Template Field Display Date If Not MinValue?

Hi guys, I have a rather simple problem with ASP.NET. I have a grid view with a template field. In the template field I have a label. I'm trying to set the labels text property to the date specified in a bound column if the datetime value is not the min value (in other words the date time field hasn't been set). I'm really not sure abou...

"Dereferencing" data from a databound GridView

I have a GridView that is bound to a select statement from a table. That table contains a lot of keys out to other tables that are just IDs. I would like the GridView to "dereference", as it were, the id of the field in question and display the human-readable name found in the other table. At the moment, the options that come to my mind...

"Dereferencing" data from a databound GridView

I have a GridView that is bound to a select statement from a table. That table contains a lot of keys out to other tables that are just IDs. I would like the GridView to "dereference", as it were, the id of the field in question and display the human-readable name found in the other table. At the moment, the options that come to my mind...

How can I programatically determine which control to use in my EditItemTemplate? (ASP.NET)

In my ASP.NET application, I have a GridView. For a particular field in this GridView, I've added an EditItemTemplate with a DropDownList. However, if the value of the field is "X", then I want to just display a label instead of the DropDownList. So how can I programatically check the field value, then decide which control to display? H...

Programmatically add template columns to gridview

Hi there, I've a list of values that need to be bound to a gridview programmatically as columns (not rows). For example, if my DAL returns 10 values, I need to display these 10 values as columns in a gridview as header text and have a textbox in the first row for each column as data input. I understand I need to create a class that impl...

GridView cell Date Format

I want to format Date of the GridView Cell text like ddMMMYYYY (i.e) 07MAY2010 how to achieve this? RowDataBound() { .... e.Row.Cells[10].Text = ......? } ...