Visual Studio Net 2005 about the user list increase the stop and seal account tag application

Source: Internet
Author: User

This need to add two DataGridView appear tag and list number does not match the problem

PageCount = Int. Parse (mresult[0, 9].ocontent.tostring ());
int j = 0;
int z = 0;
Show content to list
string [] Rowinfo = new string [8];
Try
... {
for (int i = 0; i < mresult.getlength (0); i++)
... {

if (int. Parse (Mresult[i, 8].ocontent.tostring ()) = = 1)
... {

Line number
Rowinfo[0] = convert.tostring (i + 1);
Name
ROWINFO[1] = mresult[i, 5].ocontent.tostring ();
Department
ROWINFO[2] = mresult[i, 7].ocontent.tostring ();
User name
ROWINFO[3] = mresult[i, 1].ocontent.tostring ();
Mac
ROWINFO[4] = mresult[i,3].ocontent.tostring ();
Use limitation
ROWINFO[4] = mresult[i, 4].ocontent.tostring ();
is available
ROWINFO[5] = Int. Parse (Mresult[i, 8].ocontent.tostring ()) = = 1? Config. Readconfigvalue ("MGM", "Al_code_yes"): CONFIG. Readconfigvalue ("MGM", "al_code_no");
Online status
ROWINFO[6] = Int. Parse (Mresult[i, 10].ocontent.tostring ()) = = 1? Config. Readconfigvalue ("MGM", "Al_code_online"): CONFIG. Readconfigvalue ("MGM", "Al_code_offline");
Member Type
ROWINFO[7] = Int. Parse (Mresult[i, 11].ocontent.tostring ()) = = 1? Config. Readconfigvalue ("MGM", "Al_code_sysadmin"): (int. Parse (Mresult[i, 11].ocontent.tostring ()) = = 2? Config. Readconfigvalue ("MGM", "Al_code_departadmin"): "");
ListViewItem Mlistviewitem = new ListViewItem (Rowinfo,-1);
LISTVIEWACOOUNT.ITEMS.ADD (Mlistviewitem);
LISTVIEWACOOUNT.ITEMS[J]. Tag =mresult[i,0].ocontent.tostring ();
j + +;
}
Else
... {

Line number
Rowinfo[0] = convert.tostring (i + 1);
Name
ROWINFO[1] = mresult[i, 5].ocontent.tostring ();
Department
ROWINFO[2] = mresult[i, 7].ocontent.tostring ();
User name
&n

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.