36 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Clif40RD

Hi Guys, I have a data bound grid-view with action buttons for updating and deleting items in a users shopping cart. The grid-view uses a 'SelectMethod' in the code behind to generate the data. The problem I'm having is that every time I edit some data in the grid-view, the …

Member Avatar for ddanbe
0
1K
Member Avatar for tcon

consider the following classes (similar to the ones i am working with): [CODE] namespace Project { public class Person { public Person() { } private string name; public string Name { get { return name; } set { name = value; } } private List<Pet> myPets; public List<Pet> MyPets { …

Member Avatar for Garr
0
1K
Member Avatar for ssreevidya.m

Hai , I used gridview for student list , and export it to pdf. But the 2nd column is not need to export. I make the gridview's 2'nd column visible false. [CODE] GrdStudent.Columns[2].Visible = false; [/CODE] But pdf file contain this column. Can you help me to solve it. Regards, …

Member Avatar for Rahuls45
0
2K
Member Avatar for sandesh.ps.9

Hello,I've a gridview control and inside a cell, i've put 3 radiobuttons under a same group. I'm not able to get which radio button is selected through checked property. As checked property is giving false always, when i check it with breakpoint. How can i get a the selected value …

Member Avatar for johnny-bravo
0
4K
Member Avatar for sana.f.qureshi_1

hello good people, i have created atab control and added a gridview in it. When i run it this is how it shows: ![42e98ae1ab28208a1d5964503f00cecd](/attachments/large/4/42e98ae1ab28208a1d5964503f00cecd.png "42e98ae1ab28208a1d5964503f00cecd") i have tried adjusting the heights and widths of both but tono avail. here is my code: <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="421px" style="z-index: 1; left: …

Member Avatar for sana.f.qureshi_1
0
574
Member Avatar for eileenc87
Member Avatar for jj.dcruz

hi there im a total newb at this programming language is there a way 3 databases can be in one datagridview? I can only insert 1 database in a datagrid

Member Avatar for deceptikon
0
228
Member Avatar for Centorpe

When selecting from DataGridView as program line below: Diameter = DesignationsDataGridView.Rows(e.RowIndex).Cells(0).Value I get following exception message box:- System.ArgumentOutOfRangeException was unhandled Message="Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index" If I select 'continue' from message box then I return to …

Member Avatar for Centorpe
0
339
Member Avatar for GrantB

I have a Rad gridview that databinds and popluates date according to a seacrh. There is a linkbutton that i want to be able to change on column from saying false to true or vice-versa. Please help protected void rgUsers_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem …

Member Avatar for GrantB
0
312
Member Avatar for Kratoswoo

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { DataContext db = new DataContext(); using (var SI = new DataContext()) { var search = (from l in SI.**** orderby l.*** descending where l.**** == l.**** select l).First(); Session["ID"] = search.***; Response.Redirect("http://localhost:63558/****.aspx"); } } So here I have it so when I hit …

Member Avatar for KushMishra
0
280
Member Avatar for HunainHafeez

like i am setting a button i gridview which when i click then shoulf turn row into editable mode, i could use Automatic EDIT button of Gridview but i didn't on purpose, it went good when i developed a delete button, +1, but stuck with this edit , it throws …

Member Avatar for JorgeM
0
716
Member Avatar for alpdoruk

Hello Experts, First of all I don't know if i am on the right track.If I am not please suggest your best,easy options :) What I am trying to do is the following. I have a web page which is included with textboxes I have also a database inside there …

Member Avatar for alpdoruk
0
297
Member Avatar for japhta

public void kraGridView_RowDataBound(object sender, GridViewRowEventArgs e) int totalPercent = 0; if (e.Row.RowType == DataControlRowType.DataRow) { Label lblWeigh = (Label)e.Row.FindControl("lblWeigh"); // totalPercent += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "lblWeigh")); int total = int.Parse(lblWeigh.Text); totalPercent += total; } else if (e.Row.RowType == DataControlRowType.Footer) { Label lblTotalPercentage = (Label)e.Row.FindControl("lblTotalPercentage"); // e.Row.Cells[5].Text = totalPercent.ToString(); lblTotalPercentage.Text = totalPercent.ToString(); } …

Member Avatar for japhta
0
750
Member Avatar for Kratoswoo

So I have a Datatable that is supposed to show information. I have it working in Windows Forms but tranfering it over to asp.net so a little diffrent. I do not understand GridViews that much. So any help would be appreciative. I will not give everything away. I did a …

Member Avatar for Kratoswoo
0
229
Member Avatar for hirenpatel53

hi all i am creating web site accidently i am facing one bug like i didn see pagging on grid after doing same thing on another form it works perfect Please look into my pronlem i am posting my Code here Please Help ASAP Thanks In advance This is my …

Member Avatar for hirenpatel53
0
3K
Member Avatar for RubyRuby

[WinForms].I have 3 columns in a gridview - code,Qty,name.If a cell(Say Code), is in edit mode, pressing the arrow or tab keys will fire the 'CellEndEdit' event and after that,moves the selection to the next cell. I want to have different selected cell if it is an arrow key and …

Member Avatar for RubyRuby
0
810
Member Avatar for Pankaj18

Hi, I am using below code to check only one radio button which is in gridview item template. But it allow multiple selection as CheckBoxes. My code: [code=asp.net]<columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate > <asp:RadioButton ID="rd1" GroupName="rdBox" runat="server" /> </ItemTemplate> </asp:TemplateField> </columns>[/code] Please help me. Thanks ! Pankaj Singh

Member Avatar for arun1123
-1
4K
Member Avatar for sundog1

Hi again guys... I have a little but of an issue with a select statement I cannot seem to fathem out. Below is the code: else if (radioButton3.Checked == true) ; { //Looks at the row Selected in the GridView and then takes the Account Number and Stores in a …

Member Avatar for sundog1
0
159
Member Avatar for HunainHafeez

i am trying to pick a Varchar field (Question) from tblUser where email = session variable , it doesn't give error but picks -1 and shows it, why ? even that column isn't empt for the matching email code: String connectionString = "Data Source=COSANOSTRA; MultipleActiveResultSets=true; Initial Catalog=Waleed_orsfinal;Integrated Security=True"; protected void …

Member Avatar for HunainHafeez
0
214
Member Avatar for RickCJ7

I have a table that has information of fire departments around the state. I am trying to set up the gridview so that the address is a hyperlink with google maps. For example, In my address column, I have an address such as 745 W Colfax Ave Denver CO 80204, …

Member Avatar for JorgeM
0
704
Member Avatar for while(!success)

Hi guys, I have created a gridview which is supposed to display 3 columns: | view | Name | Position | The gridview becomes visible based a a selection of a dropdownlist. When I load the gridview from the dropdownlist however, the grid view appears as such: | view | …

Member Avatar for while(!success)
0
2K
Member Avatar for HunainHafeez

i have an ajax Calender extender along with textbox in gridview, it works fine, when i select some date from calendar then it tranfers date to textbox and after clicking Update button in gridview , it sends date to database , Fine but when i don't select any thing from …

Member Avatar for JorgeM
1
267
Member Avatar for HunainHafeez

<asp:TemplateField HeaderText="Interview Date"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"/> </EditItemTemplate> </asp:TemplateField> this gives me an error, when i click on EDIT button in gridview, even ajaxtools are installed and work when i use them simply, Could not find any resources appropriate for the specified culture or the neutral …

Member Avatar for HunainHafeez
0
1K
Member Avatar for HunainHafeez

i want to grab "DataValueField" of dropdownBox and want to use it in INSERT statement , so how ? i have already filled my Dropdownbox in grid view now want to get DataValueField and using it in insert statement , how ?

Member Avatar for JorgeM
0
206
Member Avatar for HunainHafeez

i filled a gridview with tblUser, now gridview has a checkbox file (status), which is used to activate newly registered users, so i want to inform user via mail when admins activates him, mean when i (admin) checks checkbox field true, in edit mode of girdview then at that moment …

Member Avatar for HunainHafeez
0
786
Member Avatar for HunainHafeez

am near to cry bcz solving this problem took my whole day , simply, i am trying to get status of checkbox from grid view, so i converted it into tempaltefield and in .cs code i used findcontrol property but still getting error: Object reference not set to an instance …

Member Avatar for HunainHafeez
0
946
Member Avatar for HunainHafeez

my griedview is half shown on browser's screen and even it disabled horizontal scroller on screen (browser), why ? whenever i fill my gridview with many columns than it is half shown and disables scroller too, why ?

Member Avatar for HunainHafeez
0
255
Member Avatar for M.Waqas Aslam

Hi ! i m working on asp.net project and using c# for it , i want to place my delete button on the right most of the gridview , by default button is placed at left side of the grid , can any one please help me . as i …

Member Avatar for M.Waqas Aslam
0
120
Member Avatar for icedome

Hi guys, I'm having some trouble finding a control... that is because this control is on gridview witch is inside repeater (let's call it rpt1) and this repeater is inside another repeater (this one, rpt2).. I have an ItemCommand on rpt1 witch I need to catch a dropdownlist item value …

Member Avatar for icedome
0
265
Member Avatar for pepyrs

Hi guys, I have a problem when using gridview which source is a database VIEWS, not a table. I have a MySQL database running, ASP web application(C# behind). Then the GridView's source is a combination of 8 views from the database. ([CODE]SELECT * FROM v1,v2,v3... v8[/CODE]) Then the problem is …

Member Avatar for pepyrs
0
214

The End.