Number of columns in dataset

前端 未结 2 1927
渐次进展
渐次进展 2021-01-23 07:25

Is it possible to find the number of columns a data set has?

I know we can find the length of rows with:

ds.Tables[0].Rows.length

Is th

2条回答
  •  借酒劲吻你
    2021-01-23 08:16

    You should look the properties of DataTable before asking this. As it should work.

    ds.Tables[0].Columns.Count;
    

提交回复
热议问题