View Complete Post
Hi, Please guide me how to fetch data from Nested gridview checkbox on Click button event which is present outside the gridview. I did try by creating an object of child gridview on button1_click but cannot fill the value from Gridview2 into my int i. Below mentioned is the Code i am using. The database I am using is Oracle.
==== Code =====
protected void Button1_Click(object sender, EventArgs e)
OracleConnection con = new OracleConnection();
con.ConnectionString = ConfigurationSettings.AppSettings["oracle"];
//int RowIndex = Convert.ToInt32(e.CommandArgument);
//GridView subGrid = (GridView)GridView1.Rows[RowIndex].FindControl("GridView2");
//GridView subGrid = (GridView)GridView1.FindControl("GridView2");
int i = 0;
GridView subGrid =((GridView)GridView1.Rows[i].FindControl("GridView2"));
how to display data in gridview dynamically using code behind, if the xml data is available in string variable (i don't want to use xml file for carrying data). plz let me know as soon as possible
I have Gridview and Button Control on Form.i want to Add Dynamically TextBox And DropDownList In Gridview on Button Click Wich is placed outside of Gridview.
When i click on Button -> One TextBox and One Dropdownlist which contains values bydefault 1,2,3 should bind to gridview. Button is placed outside Gridview.
Thanks in advance.
using asp.net/vb.net 2005
I want to create an accordion inside a gridview with the following functionality:
The user will only see one field of the gridview initially, the ProductCategoryID. When the page loads it will only query the ProductCategoryID and this will be the only field displayed.
Next when the user clicks on the accordion to expand it inside the gridview I would like to query the database to get all Products that are part of the ProductCategory. I will query using the ProductCategoryID that is being displayed.
I need to do this for performance issues. The main thing I am looking for is how to query the database once the user expands a given ProductCategoryID.
but now I think of it one thing I need to know: when you bind an accordion to a dataset will it create one pane for each record returned? It might be better to put the gridview inside the accordion. I'm willing to do either, as long as it works
I have few textboxes and I want to search the text (partial search is also required) in the database and then show the result in a telerik grid. The grid has to be hidden initially and when I click the search button it should show up and display the results. Can anyone provide me the code to do this.
I have Gridview with column name END Date.
DATE is dd/mm/yyyy Format
Available data is :- START DATE = 1/1/2010 , STOP DATE = 1/4/2010 ,INTERVAL = 1 WEEK
HOw to bind data to gridview such that gridview should display data from 1/1/2010 to 1/4/2010 for the interval of 1week
THE OUTPUT SHOULD BE:-