adding default columns indatagrid

  • Thread starter Thread starter triumph
  • Start date Start date
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
 
Triumph,

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

Cor
 
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. "
 
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.)
 
Back
Top