Hi one & all I m wirting a code for dynamic DataGrid, in that i have a column of Date. so store procedure is exactly working but in code some what mistake , I have written the code like this myDataColumn = new DataColumn(); myDataColumn.DataType = System.Type.GetType("System.DateTime"); myDataColumn.ColumnName = "CreatedOn"; myDataColumn.ReadOnly = false; myDataTable.Columns.Add(myDataColumn); In for loop, i have taken as string noofre = Convert.ToString(dt.Rows[i]["CreatedOn"]); myDataRow["CreatedOn"] = noofre; myDataTable.Rows.Add(myDataRow); But i m getting some problem to retrieve this. So please kindly help me to solve this problem. Regards, Narendra +91 9885179844. Help this content to solve.
narendrakumarp
Posts
-
Getting dynamic Datagrid -
sql connection problemHi Friends I m using sqlhelper class file which is stored in DataAccessLayer,it is used for connecting the data from database. But when i m using this sqlhelper in another class getting an error. In visual studio 2003,the code is SqlHelper.ExecuteDataset(ConfigurationSettings.AppSettings[Projectname.Global.CfgKeyConnString] , "SPName", parameters); but same code in 2005, getting an error. so could any one give an idea to solve this problem. Thanking U, Naren.
-
How to restrict the size of image at the time of uploadHi I need to restrict the size of image at the time of uploading. So please tell me the suggestion. Thanking u, Naren
please help me
-
bookmark conceptI need a book marque concept in .net ie., in search engine, when i give one word in textbox according to that word it should move to that word place of DataGrid. So please try to tell me if any body knows. Thanking u Naren
please help me
-
Hi to One & AllHi One & All I need a small menu in my project. If i click one main link it as to show the sub links. this is my requirement in my project. So please give me an idea to do this. Thanking U Naren. please help me
-
Hi to One & AllI have a datagrid in which all menu items are there,in that i ll give the quantity in textbox which is located in datagrid. so when i click add button then that menitem & quantity should be added in another datagrid. This is my request sir. Thanking u, Regards, Naren.
please help me
-
how to use MD5 technicsHi I need to use MD5 technics for encripting & decripting the password. So if any body knows about that, plz give me an idea to use the MD5 technics. Just give me some example that to know the process. Thanking u Regards, Naren.
please help me
-
export data from datagrid to excel [modified]Response.Clear(); Response.Charset = ""; Response.AddHeader("content-isposition", "attachment;filename=FileName.xls"); Response.ContentType = "application/vnd.ms-excel"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); DataGrid dGrid = new DataGrid(); dGrid.DataSource = Classname.functionname();//this is where u write the stored procedure dGrid.HeaderStyle.Font.Bold = true; dGrid.DataBind(); dGrid.RenderControl(htmlWrite); Response.Write(stringWrite.ToString()); Response.End();
please help me
-
Hi to One & AllHi guys I need small help regarding the datagrid. I need to send data from one ane datagrid to another datagrid by clicking the button from first datagrid to a particular record. In my first grid i had a text box where i need to enter the integer value in that text box. So plz let me if any one did this. please help me
-
How to keep a tooltip for Pageindex of numeric in DatagridHi One & All This is Naren, I need some small help regarding PageIndex "ToolTip". I got for Header , items but i couldn,t find to get ToolTip for Pageindex . So plz help me to get the solutions. I m working in Asp.net with C# web Application. I wrote some code in datagrid_ItemCreated() ie., private void dgEmp_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if((e.Item.ItemType == ListItemType.Pager)) { e.Item.Cells[0].ToolTip = "Click to get this page"+Currentpageindex; } } This we wrote for PageIndex ToolTip. "Output" which i m getting is ""Click to get this page 0" for all pageindexes. So Plz tell me the solutions to do. Thanking U, Naren.
please help me
-
i want a code for discussion forum or message boardHi One & All This is Naren I m very new to this environment.c an u give me any idea about how to create message board in c#.Reply may come in recursive with regsrding thread Thanking u please help me
-
I need some help for discussion forumPlz kindly requesting to tell me any sample urls. please help me
-
I need some help for discussion forumHi One & All I want a basic idea that how to do Discussion Forum in Asp.net with C# Coding in Web Application. So if Any body Knows about it, Plz Give me some Idea. Thanking U, Regards, Naren please help me
-
how to display selected items of a listbox into a datagrid at runtimeHi one & all I need a solutions for small problem that i m not getting when i select some of the items in a listbox that items should be displayed in the datagrid with database records at run time. So pls help me Thanking u, Regards, Naren please help me
-
DataGrid problemHi One & All I m trying to do Message Center, which contains a DataGrid in that i need to get each boundcolumn a link button. So that i can redirect to next form to show the details of each message. So pls Can anyone help me Thanking u Regards, naren. narendra.pk@gmail.com
-
How can get the event of a button added in a datagrid in asp.net?Hi Try this: int tmpid = Convert.ToInt32(datagrid.DataKeys[(int)e.Item.ItemIndex]); string popupScript = "< Script language = 'javascript'>"+ string.Format("javaScript:window.opener.document.{0}.value = \'{1:d}\';window.close(0;", request.QueryString["field"], Convert.ToInt32(tmpid)) + ""; Page.RegisterClientScriptBlock("PopupScript",popupScript); In Properties of DataGrid, This Code as to be written in "ItemCommand" Event. Regards, Naren please help me
-
how to convert COM Object to string in asp.net web applicationHi Alexey Thanks a lot for immediate reply. Its giving an exception as "Specified Cast is not valid". Now i m getting this problem. Thanking u, Naren please help me
-
how to convert COM Object to string in asp.net web applicationHi Thanks for sending Reply. TextBox1.Text = xlsheet.ActiveSheet.Cells[i,1].ToString(); & also TextBox1.Text = (string)xlsheet.ActiveSheet.Cells[i,1]; But i used this, its not working. Pls give any idea. Once again Thanking u, Naren please help me
-
how to convert COM Object to string in asp.net web applicationwe are using microsoft Office 9.0 Library & COM namespace is OWC TextBox1.Text = xlsheet.ActiveSheet.Cells[i,1]; While writting this code it is not converting to object to string but in reverse case it is working properly uploading to spreadsheet. //This is the Error Error: Cannot convert Object to String So pls convey this & let me know the solution for the above problem. I m using asp.net with c# coding. Thanking u, Naren. please help me
-
Retreiving values from excel sheet using COM Object ?we are using microsoft Office 9.0 Library & COM namespace is OWC TextBox1.Text = xlsheet.ActiveSheet.Cells[i,1]; While writting this code it is not converting to object to string but in reverse case it is working properly uploading to spreadsheet. //This is the Error Error: Cannot convert Object to String So pls convey this & let me know the solution for the above problem. I m using asp.net with c# coding. Thanking u, Naren. Pls let me Know