Click here to Skip to main content
15,912,756 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Why Event is not firing for an ASP.NET Button?? Pin
jszpila22-Jun-06 6:57
jszpila22-Jun-06 6:57 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
SIJUTHOMASP22-Jun-06 7:16
professionalSIJUTHOMASP22-Jun-06 7:16 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
eggsovereasy22-Jun-06 7:48
eggsovereasy22-Jun-06 7:48 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
SIJUTHOMASP22-Jun-06 8:10
professionalSIJUTHOMASP22-Jun-06 8:10 
GeneralRe: Why Event is not firing for an ASP.NET Button?? Pin
mayurmanu@hotmail.com22-Jun-06 20:16
mayurmanu@hotmail.com22-Jun-06 20:16 
AnswerRe: Why Event is not firing for an ASP.NET Button?? Pin
Nagraj Naik22-Jun-06 20:29
Nagraj Naik22-Jun-06 20:29 
QuestionGridView.Columns Pin
eggsovereasy22-Jun-06 5:57
eggsovereasy22-Jun-06 5:57 
AnswerRe: GridView.Columns Pin
Mike Ellison22-Jun-06 7:30
Mike Ellison22-Jun-06 7:30 
GridView.Columns does not include columns that are automatically generated (i.e. AutoGenerateColumns="true")

If you are automatically generating columns, then to get the column count you need to go to the datasource. If your datasource is a DataTable for example, you would do something like this:
// bind the grid
DataTable dt = GetMyData();
MyDataGrid.DataSource = dt;
MyDataGrid.DataBind();

// inspect the table for the number of columns
int numColumns = dt.Columns.Count;

GeneralRe: GridView.Columns Pin
eggsovereasy22-Jun-06 7:46
eggsovereasy22-Jun-06 7:46 
GeneralRe: GridView.Columns Pin
Mike Ellison22-Jun-06 8:42
Mike Ellison22-Jun-06 8:42 
GeneralBrilliant! Pin
eggsovereasy22-Jun-06 9:30
eggsovereasy22-Jun-06 9:30 
GeneralRe: Brilliant! Pin
Mike Ellison22-Jun-06 10:20
Mike Ellison22-Jun-06 10:20 
QuestionAdding DataRow in DataTable Pin
peshawarcoder22-Jun-06 5:08
peshawarcoder22-Jun-06 5:08 
AnswerRe: Adding DataRow in DataTable Pin
Paddy Boyd22-Jun-06 5:52
Paddy Boyd22-Jun-06 5:52 
GeneralRe: Adding DataRow in DataTable Pin
peshawarcoder22-Jun-06 5:57
peshawarcoder22-Jun-06 5:57 
QuestionObjectDatasource Deletemethod w custom Business Object [modified] Pin
patt22-Jun-06 4:37
patt22-Jun-06 4:37 
AnswerRe: ObjectDatasource Deletemethod w custom Business Object Pin
minhpc_bk22-Jun-06 5:30
minhpc_bk22-Jun-06 5:30 
GeneralRe: ObjectDatasource Deletemethod w custom Business Object Pin
patt22-Jun-06 5:48
patt22-Jun-06 5:48 
GeneralRe: ObjectDatasource Deletemethod w custom Business Object Pin
minhpc_bk22-Jun-06 15:01
minhpc_bk22-Jun-06 15:01 
QuestionFree AJAX enabled Controls [modified] Pin
wEb GuRu...22-Jun-06 4:33
wEb GuRu...22-Jun-06 4:33 
AnswerRe: Free AJAX enabled Controls Pin
RichardGrimmer22-Jun-06 4:49
RichardGrimmer22-Jun-06 4:49 
QuestionHow to handle a click of a hyperlink Pin
widget122-Jun-06 4:16
widget122-Jun-06 4:16 
AnswerRe: How to handle a click of a hyperlink Pin
RichardGrimmer22-Jun-06 4:52
RichardGrimmer22-Jun-06 4:52 
GeneralRe: How to handle a click of a hyperlink Pin
widget122-Jun-06 5:57
widget122-Jun-06 5:57 
AnswerRe: How to handle a click of a hyperlink Pin
Dustin Metzgar22-Jun-06 4:58
Dustin Metzgar22-Jun-06 4:58 

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.