Click here to Skip to main content
15,889,840 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

When you drag the gridview unto a form it generates


Column0 Column1 Column2

abc abc abc
abc abc abc


when you create your own column Boundfield

it has DataBound


Pls clarify the difference between the 2 ie (abc and Databound).


I'm creating a gridview with 6 columns which will be populated by commnads from the click of a button, with Data Source None.

how do I build the columns with

1 Data Source :: None

2, autogenerate is True
Posted
Updated 18-Jun-14 21:56pm
v2
Comments
DamithSL 19-Jun-14 4:12am    
can you update the question with the code you wrote in click event?

1 solution

1) When you drags grid view and bind it from database with data table or data source whatever you used than it binds automatically with number of columns and rows in it.

2)When you create columns manually in gridview and if Autogeneratecolumns property true then it shows your manually created columns and data source column as well.

if you set Autogeneratecolumns property false then it shows only manually created columns.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900