Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确实定义了这样的变量来显示用户ID
userid = row.userid;
但收到此错误
Cannot implicitly convert type 'int' to 'string'
请帮忙
userid = row.userid.ToString()?
userid = row.userid.ToString()
试试这个:
userid = row.userid.ToString();