22 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for Sumith Asanka

Hi Guys I have a GridView inside a tabcontainer with some bound data fields , i have set Autogeneratecolumns=false; ShowHeaderwnenempty=true; But i can't see header or grid anymore when run but it is visible on design mode, but if i manualy bind it gridview.datasource=dataset; gridview.databind(); it is showing header and …

0
126
Member Avatar for damuzu

screenshot for edit gridview : http://img829.imageshack.us/img829/2304/06v6.png screenshot for update gridview : http://img801.imageshack.us/img801/3417/j4p1.png this is my code inside tag <body> : <form id="form1" runat="server"> <asp:GridView ID="GridView1" runat="server" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowUpdating="GridView1_RowUpdating" OnRowEditing="GridView1_RowEditing" OnRowDeleting="GridView1_RowDeleting" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" onselectedindexchanged="GridView1_SelectedIndexChanged"> <RowStyle BackColor="#FFFBD6" ForeColor="#333333" /> <Columns> <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" /> <asp:BoundField DataField="p_user_name_id" Visible="false" HeaderText="p_user_name_id" /> <asp:TemplateField …

0
159
Member Avatar for Hazuan Nazri

Hello, i need some help here, i want to change Edit,Select,Delete linkbutton in the gridview to be outside the gridview, i have tried to hide the 3 button and make another button outside gridview, but i dont know how to make a link between all the button. this is my …

0
176
Member Avatar for Jason666

I have been going through the motions and still cannot seem to get this right. I have textboxes in a gridview that are populated from an access database. They are all datetime values. In the backend code, I am trying to loop through all those values and then apply conditional …

0
106
Member Avatar for vijeevvv

I have a gridview which is connected to a SQL datasource.In the gridview i have a item template field (Textbox) and a image button. when i click on the image button, i get a popup (using ModalpopupExtender).In the popup there is a checkboxlist with a series of items which are …

0
80
Member Avatar for jespina

Please help me update a gridview using a pop up. It couldn't get the primary key of the selected row. these are my codes: Protected Sub btnSaveRemarks_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSaveRemarks.Click strSQL = "UPDATE CandidateScreening SET Remarks = @Remarks, Status = @Status WHERE ID ='" …

0
108
Member Avatar for pikkas

I have a gridview with 3 columns Name,Surname,Change(ButtonField column) which is populated from an SqlDataReader with the following code [CODE] SqlCommand sqlCommand = new SqlCommand("select * from Empl where userId ='" + userid + "'", sqlConnection); sqlConnection.Open(); SqlDataReader reader = sqlCommand.ExecuteReader(); GridView1.DataSource = reader; GridView1.DataBind(); [/CODE] In my database there …

0
78
Member Avatar for atrueresistance

Hello all, I am trying to transfer some variables to another page for editing. I am having troubles with the checkboxes. [CODE]GridView1.Rows(e.NewEditIndex).Cells(12).Text & "~\/~" & _[/CODE] is a checkbox and when passed and split it comes up as a empty string. I know there has to be a way to …

0
106
Member Avatar for Nitin Daphale

In my project there is an editable grid having three fields 'Quantity-Price-Amount', where a user can change 'Quantity/Price' depending on that 'Amount' field value should change at clientside, so that user can see Final amount for that row before saving. And there is a TextBox which showing Total Amount of …

0
108
Member Avatar for MaSSaSLaYeR

Hello! I'm trying to find a code to delete multiple columns because when you delete a column the next column takes his place so for example: If you delete column 6 then column 7 becomes column six. I tried the following code with an for loop & a while loop: …

0
92
Member Avatar for ssreevidya.m

hi, i want to create a custom gridview control with paging, sorting and filtering. I tried a lot of for it , but didnt get it correctly. Can you give me the code for it. thanks in advance, sreevidya

0
120
Member Avatar for Shantanu88d

Hi, I have added a template field on my grid view and added radio buttons to it. I have also given them group name. However when grid view populates, radio buttons behave like check boxes and multiple of them are getting selected. Here's code for GridView for ur reference. Plz …

0
92
Member Avatar for waqar100

I want to know the best practice & approach to insert the data of gridview on button click which located below the GV actually i Selected some rows by check boxes then I want to save it on DB? by xml by looping etc,, which method is best

0
84
Member Avatar for haripriyamca05

I have gridview for file download with linkbutton which keeps filename as commandargument and one more column with number of files to be downloaded. Condition is that if have more than one file i redirect to another page otherwise i can download my file there itself. I am having my …

0
108
Member Avatar for croker10

Hi all, I have a grid view I am trying to use, and it displays a large number of pill codes, (thousands) that I would like to be able to filter down. I have set up a dropdown list that gives the different options to filter on, basically every letter …

0
146
Member Avatar for gopinath.swe
0
81
Member Avatar for krunalkakadia

hi guys, i have my gridview printing problem. i have column say print in gridview.i have link button in gridview in each row.when i click on link button i want to print that row's record. anu idea or code please help me.thanks in advance. kk

0
97
Member Avatar for Anterko

Hello. I have a nested GridView inside of a DataList. I need to enable the paging control of the GridView, but I have no idea where to put the code for it to work. Also I would like to create a function which will do the following: when a user …

0
85
Member Avatar for Anterko

Hello. I have a nested GridView inside of a DataList. I need to enable the paging control of the GridView, but I have no idea where to put the code for it to work. Also I would like to create a function which will do the following: when a user …

0
80
Member Avatar for er.daljeetsingh

i have a datagridview with checkboxes in my window form and i want to sort my result with textbox without losting checkbox checked value. i place code in textbox_textchange() event. first i fill datatable with label click() [code] Private Sub Label8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label8.Click …

0
112
Member Avatar for irdeveloper

Hi I want stylize web form (form, gridview, button, menu) like windows classic form. Please help me.

0
81
Member Avatar for Wiizl

I have SQL datasource and all columns are directly displayed in gridview. [CODE] DS_params.SelectCommand = "SELECT ID, ParamName, ParamValue FROM Params WHERE ProductID=" + pid; DS_params.Select(DataSourceSelectArguments.Empty); grid_productdata.DataBind(); [/CODE] The first thing I cannot figure out is how to make some column read-only so it can't be edited, without directly adding …

0
74

The End.