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