منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
فلترة الخلايا الملونه في DGV الداتا قريد - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : فلترة الخلايا الملونه في DGV الداتا قريد (/showthread.php?tid=37247)



فلترة الخلايا الملونه في DGV الداتا قريد - Owz - 21-12-20

السلام وعليكم ورحمة الله وبركاته


الرجاء المساعده في فتلرة الداتا قريد مثل طريقة الاكسل عن طريق اللون

او جعل الخلايا التي تم تلوينها تصعد على بداية الصف


RE: فلترة الخلايا الملونه في DGV الداتا قريد - asemshahen5 - 23-12-20

How to Create ProgressBar Column in DataGridView .

Custom DataGrid with Progress Bar control .



RE: فلترة الخلايا الملونه في DGV الداتا قريد - Owz - 23-12-20

(23-12-20, 01:05 PM)asemshahen5 كتب :

مشكور اخوي العزيز ولكن الروابط تتكلم على موضوع اخر وهو اظهار النسبه المؤيه لبعض الصفوف بناء على شروط معينه


سؤالي ان كان لدي صفوف متلونه في الداتا قريد  كيف استطيع جعلها تصعد الى اول الصفوف


RE: فلترة الخلايا الملونه في DGV الداتا قريد - asemshahen5 - 24-12-20

PHP كود :
   Private Sub BtnUp_Click(sender As System.ObjectAs System.EventArgsHandles BtnUp.Click
        Dim CurrentRow 
As DataGridViewRow DataGridView1.CurrentRow
        Dim Results 
As DataGridViewRow CType(CurrentRow.Clone(), DataGridViewRow)
 
       Dim currentIndex As Int32 DataGridView1.CurrentRow.Index
        DataGridView1
.Rows.RemoveAt(currentIndex)
 
       Dim NewIndex As Int32 CInt(IIf(currentIndex 00currentIndex 1))
 
       For Row As Int32 0 To CurrentRow.Cells.Count 1
            Results
.Cells(Row).Value CurrentRow.Cells(Row).Value
        Next
        DataGridView1
.Rows.Insert(NewIndexResults)
 
       DataGridView1.CurrentCell DataGridView1(0NewIndex)
 
   End Sub
    Private Sub BtnDown_Click
(sender As System.ObjectAs System.EventArgsHandles BtnDown.Click
        Dim CurrentRow 
As DataGridViewRow DataGridView1.CurrentRow
        Dim Results 
As DataGridViewRow CType(CurrentRow.Clone(), DataGridViewRow)
 
       Dim currentIndex As Int32 DataGridView1.CurrentRow.Index
        DataGridView1
.Rows.RemoveAt(currentIndex)
 
       Dim NewIndex As Int32 CInt(IIf(currentIndex DataGridView1.Rows.Count,
 
                                        DataGridView1.Rows.CountcurrentIndex 1))
 
       For Row As Int32 0 To CurrentRow.Cells.Count 1
            Results
.Cells(Row).Value CurrentRow.Cells(Row).Value
        Next
        DataGridView1
.Rows.Insert(NewIndexResults)
 
       DataGridView1.CurrentCell DataGridView1(0NewIndex)
 
   End Sub