adding default columns indatagrid

T

triumph

Hi, I'm using datagrid where i have some fields generated from sql.
I have to include some other fields which have been set as default
columns given below.

Dim dttad As New DataTable
Dim dr As DataRow

dttad.Columns.Add(New DataColumn("S.No", GetType(String)))
..
....dgtad.DataSource = dttad

I need to include this default columns with other fields in datagrid.
How can I do that.
Ur advice is necessary to me
by Triumph
 
C

Cor Ligthert [MVP]

Triumph,

The column you made is in the datatable a column as any other column.

Cor
 
T

triumph

Triumph,

The column you made is in the datatable a column as any other column.

Cor

"triumph" <[email protected]> schreef in bericht






- Show quoted text -

sorry i dont get u. The given columns are in datatable thats been
generated by default." I need to give values to those default fields
in the datagrid. How can i do it. "
 
C

Cor Ligthert [MVP]

Sorry, I dont understand why it wont work even with this it should show one
column with "S.No" as header. (As it is created in the load event by
instance.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top