| | |
calendar inside datagrid
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Mar 2006
Posts: 84
Reputation:
Solved Threads: 1
Hey all,
guys I hav to use calendar control in a data grid.. But the events for tha calendar(selection change n others ) are not getting fired...
i am using datagrid_itemcommand and i am searching for the command name but the calendar control doesnt have command name.
how i can catch the calender event and get the select date in a textbox beside the calendar.
sam
guys I hav to use calendar control in a data grid.. But the events for tha calendar(selection change n others ) are not getting fired...
i am using datagrid_itemcommand and i am searching for the command name but the calendar control doesnt have command name.
how i can catch the calender event and get the select date in a textbox beside the calendar.
sam
•
•
Join Date: Dec 2006
Posts: 2
Reputation:
Solved Threads: 1
hi
i'm also in need of a calendar control in a datagrid urgently
can u please tel me how do u includecalendar in datagrid
thanks in advance
i need it in C# asp.net
i'm also in need of a calendar control in a datagrid urgently
can u please tel me how do u includecalendar in datagrid
thanks in advance
i need it in C# asp.net
•
•
•
•
Hey all,
guys I hav to use calendar control in a data grid.. But the events for tha calendar(selection change n others ) are not getting fired...
i am using datagrid_itemcommand and i am searching for the command name but the calendar control doesnt have command name.
how i can catch the calender event and get the select date in a textbox beside the calendar.
sam
•
•
Join Date: Dec 2006
Posts: 1
Reputation:
Solved Threads: 1
[quote=smp;288476]hi
i'm also in need of a calendar control in a datagrid urgently
can u please tel me how do u includecalendar in datagrid
thanks in advance
i need it in C# asp.net[/quote
I am also in need of this one. I can get the popup calendar and it did return the selected date in the Control text field "txtEffDate" in EditTemplate but when I try to retrieve using :
Dim EffDate As String = Convert.ToString(CType(e.Item.FindControl("txtEffDate"), TextBox).Text) in the Update proc , it did not give me the datevalue which I saw on the screen? Please someone help me with this , I already spent 2 days on this one already....
i'm also in need of a calendar control in a datagrid urgently
can u please tel me how do u includecalendar in datagrid
thanks in advance
i need it in C# asp.net[/quote
I am also in need of this one. I can get the popup calendar and it did return the selected date in the Control text field "txtEffDate" in EditTemplate but when I try to retrieve using :
Dim EffDate As String = Convert.ToString(CType(e.Item.FindControl("txtEffDate"), TextBox).Text) in the Update proc , it did not give me the datevalue which I saw on the screen? Please someone help me with this , I already spent 2 days on this one already....
•
•
Join Date: Dec 2006
Posts: 2
Reputation:
Solved Threads: 1
hi can u tel me how could u catch the selected date from te calendar into the textbox inside grid
•
•
Join Date: Mar 2008
Posts: 68
Reputation:
Solved Threads: 11
just use any javascript calender control rather than .net control .and usage details willl based on control u r gng to use.so read the manual before using js calender .
got solution ?, please mark the thread as Solved. Thanks & Regards,srikanth kadem
srikanthkadem@rediffmail.com
hi,
you can try like this
you can try like this
ASP.NET Syntax (Toggle Plain Text)
<asp:GridView ID="gdview" runat="server" ShowFooter="true" AutoGenerateColumns="False" DataKeyNames="CategoryID" > <Columns> <asp:BoundField HeaderText="Category Name" DataField="CategoryName" SortExpression="CategoryName" > <ItemStyle Height="20px" Width="150px" /> </asp:BoundField> <asp:TemplateField> <ItemTemplate> <asp:Calendar ID="id1" runat="server" OnSelectionChanged="id1_SelectionChanged"></asp:Calendar> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> in code behind: protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { bindgrid(); } } public void bindgrid() { SqlConnection conn = new SqlConnection("Data Source='localhost';Initial Catalog='Northwind';Integrated Security=SSPI;Persist Security Info=False "); SqlCommand cmd = new SqlCommand("select CategoryName,CategoryID from Categories ", conn); SqlDataAdapter da = new SqlDataAdapter("", conn); da.SelectCommand = new SqlCommand("select CategoryName,CategoryID from Categories", conn); DataSet ds = new DataSet(); da.Fill(ds, "data"); gdview.DataSource = ds.Tables[0].DefaultView; gdview.DataBind(); } protected void id1_SelectionChanged(object sender, EventArgs e) { Calendar cal = new Calendar(); GridViewRow dgrow = (GridViewRow)cal.NamingContainer; }
If u r query is achieved,mark the thread as solved
Live and Let Live
Live and Let Live
![]() |
Similar Threads
- How to fetch a datagrid content or data to a print page function? (VB.NET)
- COMBOBOX VS DATAGRIDVIEW - resizing and positioning! (VB.NET)
- checkbox in datagrid (ASP.NET)
- Retrieving dates from a dataset (Month Calendar) (Community Introductions)
- datagrid not showing images in Mozilla. (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: image uploading problem
- Next Thread: Need help creating a ~300-item web survey
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax alltypeofvideos anathor appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol feedback fileuploader fill findcontrol flash folder form gridview gudi iis image javascript list listbox login maps microsoft mobile mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail richtextbox schoolproject search security select sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl tracking treeview validatedate validation vb.net videos vista visualstudio vs2008 web webapplications webdevelopment webprogramming webservice wizard xsl





