hi
how do get column count after binding datasource
SqlConnection
);
, cnn);
adp.Fill(ds);
ds.Tables[0].PrimaryKey =
] };
I am not able get column count at databinding event
If you have not setup the columns before databinding, the columns you see on the client are autogenerated. These columns are for viewing purpose only and cannot be accessed.
To have configurable columns you would need to set AutoGenerateColumns to false, then add all of the columns that you would like to fetch from the data base to the Columns collection, and data bind. Only these columns will be shown.
Hi,
What about WebDataGrid1.Columns.Count ?
Angel