gridview

C# HTML tags inside GridView

I have a SharePoint web part that I wrote in C# which is used to display SQL Server data based on user selections. I pull the data with a DataReader, fill a DataSet with it, and set that DataSet as the DataSource in a GridView and add that control to my page: GridView outputGrid = new GridView(); outputGrid.CssClass = "OutputGrid"; outp...

What are my best ASP.Net GridView replacement options?

We currently use a GridView to display 1000+ rows of data. Minimum requirement for replacement is a fixed header row, fixed footer and columns would be a plus. This would have to work across IE 6 and greater. I've heard good things about Infragistics, but the demo on their page is slow. So what are my best options? jQuery? YUI? othe...

SQL datasource for gridview

Hi I want to use a gridview with sorting and paging to display data from an SQL server, the query uses 3 joins and the full text search containstable. The from part of the query uses all 3 tables in the join. What is the best way to do this? I can think of a stored procedure, SQL directly in the SQLDataSource and creating a view in the...

ObjectDataSource firing twice, or on its own

Can someone explain exactly how/when an ObjectDataSource fires? I have an ASP.NET page, with a GridView, which is referencing an ODS. I put a breakpoint in the method the ODS is using, and noticed it was firing twice. I looked into the code and the answer seemed obvious at first. I had Page_Load() { if(!Page.IsPostBack) ...

asp:GridView ImageField DataImageUrlField - specifying multiple fields?

I know I can use asp:TemplateField for this, but using the standard asp:BoundField or asp:ImageField in the asp:GridView, is it possible to specify multiple fields and use them in the FormatString field as {0} {1} {2} etc... For example <asp:ImageField DataImageUrlField="ProfileImageId,UserGuid" DataImageUrlFormatString="img-profile.a...

How to replicate this screenshot in WebForms?

I need to replicate the following in ASP.NET WebForms using a GridView. But I am not sure where to start. Basically I need 3 columns. The checkbox (which sometimes needs to be disabled), and 2 standard text columns. I've gone through the tutorial and I can see how to basically dump text data into a GridView, but not clear on how ...

UserControl Gridview extended with dinamic columns at same

Hi guys i'm with a doubt in asp.net webforms I'm creating a new user control "MyGrid" and i want a pager more dinamic than have: - 1stPage - prevPage - dropdown (with indices of the pages) - Label (telling the total of the pages) - nextPage - lastPage The user control is dont and implementation too, now i have the next problem: ...

datagridview viewstate question

I have a gridview in asp.net using vb 2005. on " Protected Overrides Sub Render"some of the data in the columns gets modified. when i do a view source.. and look at a column1's values it says 0010. in the render i am taking a value of ab0010 and turning it into the 0010 that is seen in the view source.. later on, there is a button_cl...

C# Gridview - Checking if a column already exists when adding a new column fails

I have a GridView with 10 columns. On a certain condition, I want to add a new column called "Expiration Date". The problem is that when the user presses "Search" again (Postback) the column is added again. I check before adding the column, to see if it already exists: BoundField dtExp = new BoundField {DataF...

PHP Grid recommendations needed

Hi, I'm looking for a grid control for a project I'm doing in PHP. Are there any good recommendations? Ideally, it'd have a data entry mode similar to a spreadsheet where the user could enter row after row after row, without needing to click new/edit buttons or links. ...

Finding a certain cell in gridview through the use of column and row

I have a populated gridview that consist of template fields. I would like to find/check a certain number of cells using values of rows and columns. Eg: |Time|col1|col2|col3|col4|col5| |1200|------|-----|-----|------|-----| |1300|------| -X- |-----|------|-----| |1400|------|-----|-----|------|-----| lets say i have the value "130...

Custom pager in my Gridview 1st time works, next doesn't :

Hi guys, i'm with one strange problem. I am extending a control from a Gridview, and adding a dropdown to paging to the page i want. In my custom gridview i added a ITemplate than contains 4 image buttons and one dropdownlist (4 images - 1st, prev, next, last) (1 ddl - to page) and add him to my custom gridview.. I added a selectind...

VB NET using custom controls with jquery in a gridview in edit mode

Greetings and thank you in advance for your answers. I am fairly new to creating controls. I have created a datepicker control which uses the jQuery datepicker. It works in most instances except within another control which utilizes a gridview. It seems that control is not being loaded since the control is only created in edit mode, ...

In a Android GridView, how can I assign a background image to a row, instead of a singular cell?

Is that possible via straight XML, or do I have to subclass the GridView class? If the latter, where do I start? ...

Edit/Access data from a CheckBox column in an ASPX:GridView - c#

Hi, I have a GridView to which I bind a dataTable I manually create. Both the GridView and the dataTable contain 2 columns, Name and isBusy. My GridView looks like this <Columns> <asp:BoundField HeaderText="Name" DataField="Name" SortExpression="Name"> </asp:BoundField> <asp:CheckBoxField DataField="isBusy" ...

Client Side validation in Telerik's MVC Grid

Is it possible to add client side validation to the fields of the Telerik MVC Grid at runtime. I am having validation JSON strings stored in the DB which I need to use when inserting or updating content ...

UpdatePanel with GridView with LinkButton with Image Causes Full Postback

So this might be a fairly specific issue but I figured I'd post it since I spent hours struggling with it before I was able to determine the cause. <asp:GridView ID="gvAttachments" DataKeyNames="UploadedID" AutoGenerateColumns="false" OnSelectedIndexChanged="gvAttachments_SelectedIndexChanged" runat="server"> <EmptyDataTemplate>Ther...

Nesting Repeater in Gridview: Hiding gridview row and repeater header if data is not there in repeater

Hello, I have nested a repeater control in Gridview. Right now it is showing gridview rows and repeater header for every case(whether data is there or not for that particular grid view row in the repeater control). I want to hide the gridview row and repeater control header when there is no data present for that particular gridview row....

How to bind an List<List<String>> to the gridview ?

Hi everyone, I'm using the new Telerik Rad Control and I would to use the GridView included. But my problem is I recover with a webservice a List<List<String>> object and I would like to show it into my Datagridview. I try to make a Grid.ItemSource = e.result but nothing appears ;-( What's the problem ? Thanks a lot. Narglix ...

prevent wpf listview header double click autosizes column

I have a listview where I have templated the column headers and the listview items are templated also. However I have different tempalates for some of the rows in the grid view. When a user double clicks on the list view column header where you can drag the width of the column, the column header will auto resize, meaning it will increa...