gridview

Read Excel in editable gridview in asp.net 3.5

Hi, I can able to read the Excel sheet in grid. but I have grid that have textboxes & dropdown list (in template field -> itemtemplate ->Text box) . I want to be take data from Excel file in respective cell (textbox) of grid. Like we can take data from database by Eval() , is there any way to get such functionality? One think i know th...

grid needed to perform edit, delete, add new row and DragDrop rows in asp.net 3.5

Hi, Please suggest me a grid which performs the Add, Edit, Delete and DragDrop rows. Is our normal GridView suffice this requirement? or should I go for DevExpress Grid or some other third party grids? Thanks in advance ...

JQuery CheckAll in GridView

I have a GridView on an .ascx. I have an asp:Checkbox CheckAll checkbox in the header template for a column and then a checkbox in the ItemTemplate. I would like to add the functionality so that when I check the checkbox in the Header, it will check or uncheck all of the checkboxes in the GridView. How do I do this with JQuery? I wou...

Selecting rows in Tablesorter

Hi all, I user Tablesorter a jQuery plugin (I am sure other know about it) in my project. I need to add a feature where in when users click on a row, it gets selected . I tried the following code but, its not working out. $('#myTable tr').click(function(event) { $(this).addClass('selected'); }); Could anybody tell me the best way...

AutoComplete intergrated with a GridView

I'm was wondering if anyone know of an implementation where there is an autocomplete textbox that drives what displays in the DataBound control like GridView, Repeater, ListView,etc.....Any links or advice will be helpful. Thank You, ...

asp.net Gridview: buttons accessing data for each row

I'm trying to code a Gridview that has a button on each row that when clicked will expose that particular rows data for use, but I'm not sure how the data would be passed. The Gridview: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource2"> <Columns> <asp...

Gridview edit column position

Hi guys, I would like to know how to change the edit column position after setting AutoGenerateEditButton="true". By default it is displayed always on the left as the 1st column. TIA ...

How to color item text in GridView for non-selected lines only?

Hi, I have a GridView with image buttons for selecting rows. I am using an OnRowDataBound event to color selected rows Blue: e.Row.ForeColor = System.Drawing.Color.Blue Now that works great as long as I don't set a color either in the CSS stylesheet or on the grid Items themselves. If I do that, then all rows are colored that colo...

Inserting new row in GridView in ASP.NET 2.0

Work on asp.net C# vs05.Want to fill each row of a grid separately .On desktop application i wrote bellow code to fill listview : foreach(Object in o Collection) { Listview oItem=new ListItem("value1"); oItem.items.add("Value2"); oItem.Items.Add("Value3"); oItem.Tag(o);//Put collection object } To use the above code, i want to fill g...

ASP.NET - How to wrap GridView Delete in try catch or stop a row delete

I want to be able to wrap a gridview row delete in a try catch and display a nice error message on the screen or try to stop the delete from happening in certain circumstances. At the moment, I am getting foreign key violations in the database. So I either want to stop the delete from happening if there are child records or catch the ...

What do you call the first column of a .NET WinForms GridView?

What do you call the first column in a GridView? This is the leftmost non-databound column. Is it possible to prevent this column from being rendered? ...

Self-referencing hierarchy in GridView

Hi, I recently read that self-referencing hierarchy is now supported by Telerik's radGridView. Unfortunately, I have been unable to locate any demos, tutorials, or sample code to look at. Is this information available? Here is my current code that I'm working with: private void SetupElementsGrid(){ radGvElements.Columns.Clear(); rad...

Deleting GridView’s rows

Hi Let’s assume that ( the first time page is created ) I manually bind GridView to some data source. Is there’s a way to configure GridView to delete a row ( by pressing row’s delete button) without handling any of the delete events ( in other words, we wouldn’t try to delete a row in data source and then rebind GridView to it)? Inst...

Displaying multi table values in a single GridView column

I have a GridView bound to a table using BindingSource and Linq to SQL classes. The table structure is like this: MainTable ---------- ID Name FormReserveId 123 asd 15 FormReserves ----------------- ID FormId Number 15 33 some number Forms ------ ID FormName 33 form name MainTable.FormReserveId foreign key to FormReserves.ID Fo...

Jquery slide effect in ASP.NET Grid

I have a question is there a way I could create the collapsible effect with the Jquery show(), hide(), slide(). Functions and has anyone found any examples to do this? ...

update panel issue

For whatever reason - my update panel is not updating. Now please note that this is all inside the item template of a template field inside of a gridview. Major Nesting. Help me,Please <ItemTemplate> <asp:ImageButton ID="bttnEdit" runat="server" injid='<%# Eval("Id") %>' causeid='<%# Eval("Cause_Type") %>' natureid='<%# Eval("Nature_...

WPF Drill-down GridView to display live data

I'm writing a monitoring system that displays real-time sensor data. The sensors are arranged in a hierarchy. Sensor 1 could, for instance, have S1.1 and S1.2 as children, which could in-turn have S1.1.1, S1.2.1, and so forth. I'm looking for a GridView control that allows one to drill-down each parent item, while still refreshing the ...

Checkbox in TemplateField in Gridview loses checked on postback

I have a gridview with a template field. In that template field is a checkbox. I have a submit button outside of the gridview to assign the records that were checked. On the postback no checkboxes register as being checked. Here is my Code: <Columns> <asp:TemplateField> <ItemTemplate> ...

How can I evaluate the bound object in a grid view

<ItemTemplate> <%# ShowDescription((ClassName) Eval("this")) %> </ItemTemplate> I bind a list of objects to my gridview and in my gridview want to evaluate (call a function on) the bound object or bound object by row. Not the property of the bound object but the object itself. The above code obviously gives me an error and <I...

Refresh update panel

hi i have master page update panel also. When i child page have delete function. when i delete the row from grid. after i rebind the grid. Then also i cannot see refreshed grid. how to update the panel or grid? regards Dhanraj.S ...