gridview

trigger confirm box

i have used <asp:CommandField ShowEditButton="true" ButtonType="Link" EditText="Edit" ShowHeader="true" HeaderText="Edit" HeaderStyle-Font-Bold="true" /> <asp:CommandField> in my gridview. Response.Write("<script>confirm('Are you sure');</script>"); if("OK") { } else { } how to take the v...

What is the difference between ListView and GridView in WPF?

I am trying to create a WPF database application. There seems to be a few good components that I can use for showing the data in the database tables. ListView and GridView seems to be popular for this usage. But for a novice, it's hard to see the difference between them. What is the difference between ListView and GridView? What are the...

how to bind a datasource with field parameters when filled?

i want to bind a gridview to an objectdatasource that have some fieldparameters. i would like to do the databinding when the fields are filled, suppose i have a 'show' button... i would like to know if it is possible to databind in an specific event... as far as i know the databing is automatically done... can this be controlled? i'd a...

Thumbnail Grid Control like Windows Explorer

I'm looking for a free WPF control that can show a gird like windows explorer's thumbnail new, rows of images with some info under each thumb, it would be added benefit if it could be switched to detail and list view too but for now the thumbnail view is the most important, I'm not that familiar with WPF's built-in controls so this migh...

How to clear the GridView column greater than index 1.

how to clear the GridView column greater than index 1. grdview.Columns.Clear() will clear all columns, but i need to clear the columns greater than index 1 ...

how to add the footer row dynamically in gridview. with textboxes

how to add the footer row dynamically in gridview. with textboxes.. pls give any idea... ...

How to FindControl() in a GridView while in Edit mode?

I want to access controls and update database with their value. Notice using following code: void grdList_UpdateCommand(object source, GridCommandEventArgs e) { string str = ((RadTextBox)e.Item.FindControl("txtLookupItemValue")).Text; } I have access to control txtLookupItemValue, but it contains before-edit content, not actua...

Which GridView event to use when updating?

Hi, I have a GridView with ItemTemplate and EditTemplate. There is some text boxes in EditTemplate. I want to update records myself using EditTemplate controls. Which event of GridView I should use? If I use Telerik's RadGrid then what event is better? ...

gridview rowediting event-dynamic checkbox,datetimepicker control

i have a gridview with columns as datetime name status i need to update the column record , so i used: <asp:CommandField ShowEditButton="true" ButtonType="Link" EditText="Edit" ShowHeader="true" HeaderText="Edit" HeaderStyle-Font-Bold="true" Visible="true"> <HeaderStyle Font-Bold="True" /> </asp:CommandField> and in rowediting event...

Dictionary<string, List<int>> to WPF GridView

I would like to bind a Dictionary<string, List<int>> to a GridView in a ListView and I'm not having much luck. I've looked at this question: wpf-binding-dictionarystring-liststring-to-listview-listbox-how, and this question: dictionary-binding-to-listview But I'm not sure how to take their code and make it work for me. Here's what I'v...

Getting a value after gridview row updated

Hi I have a gridview that shows a list of questions. Only one field is editable and if the information has been edited an email is sent to a specific "destiny". All works fine but when I try to get the Question ID in my SendEmail function (using Findcontrol) I get "Object reference not set to an instance of an object." How Can I get th...

Gridview invalid column name

I have a gridview0 in a multiview and when I click select on a row I have the GridView0_SelectedIndexChanged sub change to a different view in the multiview, which has a different gridview1 but the same datasource as gridview0. This is when it errors out and it displays the invalid column name error, with the column name being the datak...

How can I change the background color of a gridview cell, based on a conditional statement?

Okay I clearly haven't fed google the right query or I would've found out by now. I'm hoping someone on this forum can help me. So I have a datatable that I'm adding rows to based on a datareader that's getting its info from an sql query executed over a database. So far, so good. Now, one of those columns is called 'analysis', and I nee...

Can I explicitly force asp.NET to re-load the ViewState data of any data-control?

Hi, I have a problem regarding to asp.net lifecylce hierarchy. Basically, I have one user control which has a GridView in it. And this GridView is dynamically generated based on a public property on the control (named Parameter in the simplified code below). Everything is fine when I insert this control in an aspx page, set its Parame...

dot net gridview sorting problem

Dear All, I have a web application (with C#). I have a GridView and want to be able to sort its contents. I have added the tags ... AllowSorting="True" onsorting="MyGridView_Sorting"> and asp:BoundField DataField="NAME" HeaderText="Name" SortExpression="NAME" inside the GridView. I have implemented the MyGridView_Sorting method...

editable gridviews - how to update rows not editable/bound only?

Note: Code is taken from this tutorial http://msdn.microsoft.com/en-us/library/aa992036%28VS.80%29.aspx I currently have an editable gridview with only some columns editable by the user. In the background I want to record the time/date they have saved the data to the grid. This column 'Time' is not bound to the grid. Is there anyway I c...

gridview static column style

Hi , can anyone tell why styles applied through ItemStyleCss are reflecting in static columns in the grid view. In my application i have a grid view with static (View/Edit link columns) and dynamic columns and when i apply border-color through the styles defined for ItemStyleCss property.. the border-color not reflecting to static colum...

creating template columns dynamically in a grid view not getting displayed

we tried to create the dynamic gridview with template using this. but we are stuck with casting our gridview to this ListGrid. If we create the instance of Gridview as follows GridView1=new ListGrid(); We cannot able to get the datas displayed as it is temporary instance that is created and it is not getting overriden to our existing g...

Android GridView Disable Highlighting

I'm trying to disable the highlighting of objects in a GridView in Android 2.2. I did find another article saying that I should set the selector to a transparent ColorDrawable, but the views in my GridView are still dimmed when I select them. I'm just using the GridView to display static objects (right now it's text, but I plan on switch...

When Update a field with ReadOnly Mode in GridView ,value of that is empty

One of the few fields that have their ReadOnly property equal to True then Edit and Update the value field is empty ReadOnly property is recorded. I also have a ReadOnly property and its value is not empty. (GridView to the SqlDataSource is connected) How to solve this problem? ...