|
Hi,
I want to create a Grid View in C# dynamically and add columns and data into it ... I tried it in all sources what i know nut i failed can any body help me out.. Please...
the way i tried is
GridView dg=new GridView();
dg.columns="admin";
.....
.....
Regards,
Pardhu..
|
|
|
|
|
where do you get the data?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
|
Hi,
I have gridview and I used 2 button in that grid view. Now I want first column value from selected rows button from the gridview.
I am using Itemtemplate in which buttons are there in that ItemTemplate
e.g. If I click on the 3rd rows button then I want 1st column value from 3rd row.
Thanks
Sjs
|
|
|
|
|
Is it a commandfield button or just a standard button?
|
|
|
|
|
use the following
Gridview.rows[index].cell[0].text
This way u will get the data..
|
|
|
|
|
Hi,
If you are using <asp:button> in template field of column then you can get the value of selected row's first column in that button's click event.
e.g
protected void Button1_Click(object sender, EventArgs e)
{
Button btn = sender as Button;
GridViewRow row = btn.NamingContainer as GridViewRow;
//Get the First Column's value
string value = row.Cells[0].Text;
}
|
|
|
|
|
Hi,
I have a page navigation problem for the previous page when i am trying to navigate user to the previous page using the following javascript stmt
window.location.href='welcome.aspx';
the above page resides in the same directory as the current page.
This problem is coming when i am trying to browser the site from other system.From local system it was working fine.
pl help me if anyone has come across with the same problem?
Thanks...
|
|
|
|
|
In mozilla,while seeing print preview not showing all the records.....
send me some solution...
thanks
modified on Thursday, November 26, 2009 6:36 AM
|
|
|
|
|
Good. So what is your question?
Please read the posting guidelines and rephrase your question.
Best wishes,
Navaneeth
|
|
|
|
|
Hi..
I am using asp.net/c# (VS 2008/3.5). I am working on web application and developed microsoft report (rdlc). Now I want to export it to word or PDF through my own functionality as i will be hiding the reportviewer's tool bar.
could u guide me for this..
thanks in advance.
By:
Hemant Thaker
|
|
|
|
|
|
Hi All.
I have a question that i keen to know..
Is Session is property of Server or Browser..Or Page..
i want the answer with reason
Thanks in advance.
|
|
|
|
|
|
Sachin Dubey wrote: Is Session is property of Server or Browser..Or Page..
What Dou You mean By tht?
Session used to store information on server memory.
More abt session..!
http://www.codeproject.com/KB/aspnet/ExploringSession.aspx
|
|
|
|
|
Sachin Dubey wrote: Is Session is property of Server or Browser..Or Page..
Session stored at Server Side. Each and every client having it own session. For more details read the link that others have already provided to you.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Sounds like a homework question to me. Try google.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Hi to all,
I am currently working on vs2008 generating powerpoint presentations.
I have a problem in representing the entire set of data into a table using vs2008 in a powerpoint
Can anyone suggest me in this matter how to proceed
Thanks inadvance
sai krishna
|
|
|
|
|
dsaikrishna wrote: I am currently working on vs2008 generating powerpoint presentations.
I think You are talking abt Windows Application?
There is a office addon in windows application..!
If You need more help in this type of application move your post to C# forum..!
File--> NewProject--> C# (Office)-->Your Application..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hi,
i need to transfer a key value from a page to a popup page "on selected index change" of a gridview.
i have used a asp:HyperLinkField, to navigate the url.
i got the page to pop up. I need to pass the key value.
plz help me out......
|
|
|
|
|
can anyone help me out with this problem....plz
its urgent......
|
|
|
|
|
i am keeping all the Menu names in the xml file(menu.xml) and binding that xml into dataset(Server.Mappath(~/menu.xml)) and displaying in the page.i am getting the following error message in some machines "Invalid URI: There is an invalid sequence in the string", but it is working fine for some machines. what is the reason for this.
|
|
|
|
|
There might be some invalid characters. Try something with server.urlencode and urldecode.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Can i bind the xml file into the Dataset using with Server.UrlEncode
Eg: Dim ds as Dataset=Server.UrlEncode(server.mappath(~/menu.xml))
|
|
|
|
|
Perhaps if you posted the string that gives the error someone may be able to provide an answer.
|
|
|
|