Do a static declaration like so:
Private m_CustomColors( ) As Integer = {&H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0, &HFFFFFF, &H0}
I used this to initialize a ColorPicker dialog's custom colors to display an alternating black and white pattern.
This provides a 16 element array....
User Profile
Collapse
-
Assuming:
Dim oDataGrid as DataGrid
If IsNothing(oData Grid.DataSource ) Then
'do something...
End If
or,
if you have set the DataGrid.DataSo urce to a DataTable then
If CType(oDataGrid .DataSource, DataTable).Rows .Count = 0 Then
'do something
End If
You can clear a DataTable in a DataGrid with:...Leave a comment:
-
How to detect ctrl+Right Mouse Click in a vb datagrid
What's the best method for detecting a ctrl key being depressed simultaniously with a right mouse click in a datagrid in a vb application?
I need to get row, field resolution.
Regards,
John
No activity results to display
Show More
Leave a comment: