Hi friends
can any one help me to solve this problem.
I want to display the inputs of text boxes by using datadrid control.
i am using visual studio2005.I tried with the following code

(datagridobject).DataSource=(arrayname)

but this displaying column name as "length" and its values are numeric.How can solve this problem.
Can we add click event to rows of datagrid control.


with regards

Please explain more

but this displaying column name as "length" and its values are numeric.How can solve this problem.

Here you can find the answers. There examples on VB, but good explanation of why that happens and how to solve it. Hope it will help you..

Can we add click event to rows of datagrid control.

This depends on why you need that. As one of the possible ways, you could catch DataGridView.CellMouseClick Event. And then locate the row, on which this cell placed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.