Click here to Skip to main content
15,903,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET mouse event [modified] Pin
CodeBoi12-Mar-07 6:21
CodeBoi12-Mar-07 6:21 
AnswerRe: ASP.NET mouse event Pin
netJP12L12-Mar-07 5:39
netJP12L12-Mar-07 5:39 
GeneralRe: ASP.NET mouse event Pin
CodeBoi12-Mar-07 6:04
CodeBoi12-Mar-07 6:04 
QuestionDynamic Controls HELP --URGENT Pin
percyvimal12-Mar-07 5:22
percyvimal12-Mar-07 5:22 
AnswerRe: Dynamic Controls HELP --URGENT Pin
SABhatti12-Mar-07 5:36
SABhatti12-Mar-07 5:36 
AnswerRe: Dynamic Controls HELP --URGENT Pin
badgrs12-Mar-07 5:50
badgrs12-Mar-07 5:50 
GeneralRe: Dynamic Controls HELP --URGENT Pin
percyvimal12-Mar-07 21:47
percyvimal12-Mar-07 21:47 
QuestionRemoving GridView columns at runtime? Pin
darren2412-Mar-07 5:14
darren2412-Mar-07 5:14 
I have a gridview that is populated dynamically based on a drop down by setting the Source to an ObjectDataSource. I want to pull the exact same results in two of the cases from the BLL which pulls from the same get method of one of the table adapters but I want to hide a couple of the columns. Here are four lines of code that I use to bind the gridview but if I try to use GridView3.Columns.RemoveAt(0) or GridView3.Columns.Remove("FirstColumn") I get errors. Can anyone help me with this?

ObjectDataSource1.TypeName = "QAReportsBLL";
ObjectDataSource1.SelectMethod = "GetQARptABCD1";
GridView3.DataSourceID = ObjectDataSource1.ID;
//GridView3.Columns.RemoveAt(1);
GridView3.DataBind();

If I uncomment out the RemoveAt line I get this error...
Error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index .

The table has about 15 columns and I have autogenerate columns set to true.
AnswerRe: Removing GridView columns at runtime? Pin
SABhatti12-Mar-07 5:20
SABhatti12-Mar-07 5:20 
GeneralRe: Removing GridView columns at runtime? Pin
darren2412-Mar-07 6:03
darren2412-Mar-07 6:03 
GeneralRe: Removing GridView columns at runtime? Pin
darren2412-Mar-07 6:18
darren2412-Mar-07 6:18 
GeneralRe: Removing GridView columns at runtime? Pin
SABhatti12-Mar-07 7:54
SABhatti12-Mar-07 7:54 
AnswerRe: Removing GridView columns at runtime? Pin
Rhys Gravell12-Mar-07 6:46
professionalRhys Gravell12-Mar-07 6:46 
Questionclose modal dialouge box Pin
yesu prakash12-Mar-07 4:46
yesu prakash12-Mar-07 4:46 
AnswerRe: close modal dialouge box Pin
SABhatti12-Mar-07 5:24
SABhatti12-Mar-07 5:24 
QuestionLogin Error Pin
reddyamar_uk12-Mar-07 4:33
reddyamar_uk12-Mar-07 4:33 
AnswerRe: Login Error Pin
badgrs12-Mar-07 5:48
badgrs12-Mar-07 5:48 
AnswerRe: Login Error [modified] Pin
RichardGrimmer12-Mar-07 6:48
RichardGrimmer12-Mar-07 6:48 
QuestionRetrieving Full URL from a relative url Pin
dabs12-Mar-07 3:20
dabs12-Mar-07 3:20 
AnswerRe: Retrieving Full URL from a relative url Pin
Walter_H12-Mar-07 4:26
Walter_H12-Mar-07 4:26 
QuestionUpdating GridView row bound to ObjectDataSource Pin
mcs13012-Mar-07 3:47
mcs13012-Mar-07 3:47 
AnswerRe: Updating GridView row bound to ObjectDataSource Pin
mcs13012-Mar-07 16:52
mcs13012-Mar-07 16:52 
QuestionCan't Execute My content page Pin
Waheed AL Barghouthi12-Mar-07 3:46
Waheed AL Barghouthi12-Mar-07 3:46 
AnswerRe: Can't Execute My content page Pin
Imran Khan Pathan12-Mar-07 3:57
Imran Khan Pathan12-Mar-07 3:57 
GeneralRe: Can't Execute My content page Pin
Waheed AL Barghouthi12-Mar-07 6:28
Waheed AL Barghouthi12-Mar-07 6:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.