I can populate this data into the UI Page..
My task is to automatically delete the columns which has '0'(zero) value...and i have to delete the first row of my table...
Hear i am not going to use any itemtemplate column..
I have to write some code in codebehind..
JurisdictionID JurisdictionDescription Year1 Year2 Year3 Year4 Year5 Year6 Year7 2005200620090000
AL Alabama 0060000
AK Alaska 2000000
Could Anyone suggest me ..How to proceed further in detail with some code...
i am getting errors like this..
1) 'System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level
2) Cannot apply indexing with  to an expression of 'System.Web.UI.WebControls.GridViewRow'
actually am poor in c# technologies..could you sen dme solution fot this..
If what you want to do is to delete a column from the underlying database table I'm not sure I can help you on that.
If what you want h/ever is to simply hide the column from the GridView this should work otherwise you can replace GridView1.Columns.Remove(GridView1.Columns[i]); with GridView1.Column[i].Visible = false;
I've tested the previous code and it worked.
Why not post more code for us to see where you're getting it wrong?
by using above syntax also..i can't see anychange in the table..i can see all the columns..the 0(zero) value cell columns are not hiding..
actullt my task is to delete those columns..am unable to do that..
atleast i want to try with hiding those columns..
below i copied my code of populating data into gridview and the rowdelete event..
I have very strange problem and I hope someone will help me because I'm running out of time. So, the deal is - I'm working on a project for my graduation, which is a web site, connected to a SQL Database. It was working perfectly, until I decided to make users and roles. I run the aspnet_regsql.exe, which created in my database some tables to manage the users, but when I try to configure the roles through Web Site Administration Tool it cannot find my database...It's strange because when I execute my queries it works fine.
Can anyone tell me why the Web Site Administration Tool doesn't see my database?
I've decided to implement articles reading/writing in my webapp. So i sat down and started thinking about how should i accomplish my goal. I came up with the following idea:
1. Article List / Search form
2. Article Add / Edit form
3. Article Detail form.
However i'm not quite sure "what is the whole picture behind the scenes". I was thinking of the following:
When composing / editing an article there should be a input text control ( Multiline textbox for example ) which acceps HTML. My question here is: Is it acceptable to develope that kind of a control, since only the editors and administrators will be able to access this page. Is that the right way to achieve this ( html gives a really big power when wrtiting article ... but it could be harmful in the wrong hands ) ?
The markup will be stored in MS SQL database.
When displaying the markup in the article, should i use a "Label" control to achieve this. Since this control is rendered like a it can be really useful to display HTML. Is this the right way ?
I have login page with both button click and text changed event having same code.
If i disable the code on buttonclick event and enable the textcox changed event,if i click on the button, page is redirecting to the next page which is wrong.Why it is happening?
Which event calls first button click event or textchanged event.
so i am testing both cases.
Otherwise wats the solution to do both the ways?
I wanted to login either through button click or by click 'enter'.
If u r free please give me the reason and solution
The only thing worse than the morons asking around here, is the morons answering redundantly, or with ignorance. Mark is a respected member of this community and he is upholding the standards we used to have around here.
Driven to the arms of OSX by Vista.
Please read this[^] if you don't like the answer I gave to your question.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Jan-23 0:50