gridview

is it possible to set number of colums different for diffrent rows of a grid view ??

my perpose is to set headers for related items of griv view and for this i am thinking about to set the width of gridview diffrent for header and sectional view's ....... if any other way 2 set sectional header for related items is possible ??? ...

How to add text to a C# datagrid from a textbox using a button click

How to add text to a C# datagrid from a textbox using a button click ...

Android layout not showing properly

Hi everyone. I'm writing an android app, and in it I want to have a sort of title bar, with the name of the game, the score, and things like that. Then below that I want to have an grid of image views, which will kind of be like tiles on which I can display different characters in my game. I have the following xml layout, but when I ru...

how can i make combobox in a datagridview cell editable?

i have a combo box in a data grid view cell.i need to make it editable. how can I do so. ...

GridView1.SelectedRow returning nothing

Hi there, My problem is that in the below code, the SelectedRow property returns nothing. I manually bind items to GridView at runtime and autogeneratecolumns and autogenerateselectbutton properties are true. I think the problem is about having a PostBack when the Select command is clicked. Thanks a lot. Protected Sub GridView1_RowCo...

Is it possible to do a linq query on a GridView (ASP.NET)?

Basically I have a datakey that I'd like to query from my GridView instead of looping through all the rows and comparing the key of each row. So I was wondering if it was possible to just do a linq query on the gridview (not datatable) and filter with the datakey. ...

Alternative to overriding Render for adding ClientScript.GetPostBackEventReference attribute in nested GridViews

Hi Is there an alternative to overriding the page render method to make my gridview rows clickable. This works fine in single grid view mode, but when nested , although the code steps through and seems ok, I don't get the selected index firing on the nested grid view. Edit: I have tried the following line in RowDataBound, but don't kno...

what is the event which fire when a selected value of a combo box in a data grid view is changed?

i have a combo box cell in a data grid view, and when its selected value get changed some values should be automatically added into other cells in the same row.but i couldn't find an event for this. Is there an event which fire when a selected value of a combo box in a data grid view is changed? If not so, how can i manage this? ...

getting gridview cell value using a key instead of index

Hi, I would like to get a cell value on rowupdating event (or any event) of the gridview, based on a text key, rather than using an index. Is this possible? for example instead of saying GridView1.Rows[e.RowIndex].Cells[0].Text, I would like to say something like GridView1.Rows[e.RowIndex].Keys["CustomerId"].Value, so that even if I rear...

Unable to get the Datakey value of a selected row in GridView for use in FormView

Hi, I have a gridview like this : <asp:MultiView ID="MvCustomer" runat="server" ActiveViewIndex="0" > <%--View 1 to List the customers--%> <asp:View ID="VwCustomersList" runat="server" > <asp:GridView ID="GvListCustomer" runat="server" AutoGenerateColumns="False" HorizontalAlign="Center" DataSourceID="OdsGvCustomers" DataKeyN...

How to make gridview header fixed when overflow property is enabled

I want user to be able to scroll in a div to see all the rows. But setting div's overflow property to true. When I starts scrolling header goes away. Is it possible to make header static. So that I can sort or do any kind of other operations. Currently I tried to take fixed table above grid and hiding grids header. But on editing it is ...

ASP.NET Increase SQL Timeout on Gridview Databind

Getting the following sql timeout on a page System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. GridView1.DataBind(); While I know I need to review the actual Stored Procedure used, can someone point me to a quick fix to increase the time...

merging rows from sql query result

What would it be the simplest way to merge a result like this from a sql query to be displayed in an asp.net gridview? NULL Tarde Fer W. Lunes Mañana NULL Fer W. Lunes I need the result to look like this Mañana Tarde Fer W. Lunes ...

Binding GridView to generic collection using TemplateField

I have GridView bound to some List. In layout I created following template field: <asp:TemplateField HeaderText="Phrase"> <ItemTemplate> <asp:TextBox ID="phraseTextBox" runat="server" Text='<%# Bind("Phrase") %>'/> </ItemTemplate> </asp:TemplateField> But after changing the content of any TextBox in column "Phrase" my ...

WPF: Binding DataGrid column header to ViewModel

I have a datagrid in which i manually specify the columns (AutoGenerateColumns="false"). I'm using MVVM and I would like to bind the column header (the text) so that I get it from my ViewModel. But I can't find a way to do that. The closest thing I've found is this: http://stackoverflow.com/questions/652240/wpf-toolkit-bind-datagrid-col...

GridView is not clickable

I have the following layout: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <GridView android:id="@+id/grid" android:layout_width="fill_parent" android:layout_height="...

ASP.net: Gridview Datasource Caching Question

I currently have a control that called MyGridview that inherits Gridview. It has a paging template within it for customized paging options, and I'm at the point where I want to cache the initial datasource for better performance. I haven't done this in a long time, so perhaps there is a different solution these days with the newer fram...

Infragistics UltraWebGrid and Excel Exporter - how to uncheck Checkbox after export?

I have an UltraWebGrid, which the last column being a CheckBox. They then have the chance to Export the rows where the CheckBox is selected (yes, I'm using the UltraWebGridExcelExporter. But, after it has exported, I want to have it automatically uncheck any of the CheckBoxes. How can I do this? I've tried playing around with UltraWebGr...

GridView : Freezing First Columns and Freezing Column's Headers

Hi any body can tell how to freeze gridview Header and some two colums based on axis there fore a gridview should have both vertical and horizontal scroll so that when scrolling vertically need to freez the header and when scrolling horizontally freeze the columns. ...

Prevent Empty Gridview data from populating "&nbsp;" into textbox

I have this code that populates a textbox based on a cell in the selected row of a gridview protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { txtComment.Text = row.Cells[14].Text.Trim(); } It displays &nbsp; in the txtComment textbox if Cell[14] has no data. Is there a way to prevent t...